IMediaControl interface (control.h)
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.
The IMediaControl interface inherits from the IDispatch interface. IMediaControl also has these types of members:
The IMediaControl interface has these methods.
The AddSourceFilter method adds a source filter to the filter graph.
The get_FilterCollection method retrieves a collection of the filters in the filter graph.
The get_RegFilterCollection method retrieves a collection of all the filters listed in the registry.
The GetState method retrieves the state of the filter graph�paused, running, or stopped.
The Pause method pauses all the filters in the filter graph.
The RenderFile method builds a filter graph that renders the specified file.
The Run method runs all the filters in the filter graph. While the graph is running, data moves through the graph and is rendered.
The Stop method stops all the filters in the graph.
The StopWhenReady method pauses the filter graph, allowing filters to queue data, and then stops the filter graph.
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|
|Header||control.h (include Dshow.h)|