// 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; } }
// 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; } }
public void Pause() { if (_mediaControl == null) { return; } if (_mediaControl.Pause() >= 0) { PlayState = PlayState.Paused; } }