|Microsoft DirectShow 9.0|
The IMediaControl interface provides methods for controlling the flow of data through the filter graph. It includes methods for running, pausing, and stopping the graph. The Filter Graph Manager implements this interface. For more information on filter graph states, see Data Flow in the Filter Graph.
In addition to the methods inherited from IDispatch, the IMediaControl interface exposes the following methods.
|Run||Runs all the filters in the filter graph.|
|Pause||Pauses all filters in the filter graph.|
|Stop||Stops all the filters in the filter graph.|
|StopWhenReady||Pauses the filter graph, allowing filters to queue data, and then stops the filter graph.|
|GetState||Retrieves the state of the filter graph.|
|RenderFile||Intended for Visual Basic 6.0; not documented here.|
|AddSourceFilter||Intended for Visual Basic 6.0; not documented here.|
|get_FilterCollection||Intended for Visual Basic 6.0; not documented here.|
|get_RegFilterCollection||Intended for Visual Basic 6.0; not documented here.|
Header: Declared in Control.h; include Dshow.h.
Library: Use Strmiids.lib.