Beispiel #1
0
    // Pause the capture graph.
    // Running the graph takes up a lot of resources.  Pause it when it
    // isn't needed.
    public void Pause()
    {
        if (m_bRunning)
        {
            int hr = m_mediaCtrl.Pause();
            DsError.ThrowExceptionForHR(hr);

            m_bRunning = false;
        }
    }
Beispiel #2
0
    // Pause the capture graph.
    public void Pause()
    {
        // If we are playing
        if (m_State == GraphState.Running)
        {
            int hr = m_mediaCtrl.Pause();
            DsError.ThrowExceptionForHR(hr);

            m_State = GraphState.Paused;
        }
    }
Beispiel #3
0
        public void Pause()
        {
            if (_mediaControl == null)
            {
                return;
            }

            if (_mediaControl.Pause() >= 0)
            {
                PlayState = PlayState.Paused;
            }
        }