|Microsoft DirectX 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.
IMediaControl also provides some Automation-compatible methods for building graphs. These are intended for applications written in Microsoft® Visual Basic® and are documented in the section Using DirectShow with Visual Basic.
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; not documented here.|
|AddSourceFilter||Intended for Visual Basic; not documented here.|
|get_FilterCollection||Intended for Visual Basic; not documented here.|
|get_RegFilterCollection||Intended for Visual Basic; not documented here.|