FilgraphManager.Run

 
Microsoft DirectShow 9.0

FilgraphManager.Run

  • Note   This topic is deprecated. It applies to Visual Basic 6.0. DirectShow is not supported for Visual Basic .NET or C#.

The Run method runs all the filters in the filter graph.

Syntax

  objGrah
  .Run() 

Parameters

This method takes no parameters.

Return Values

This method does not return a value.

Remarks

If the filter graph is stopped, this method pauses the graph before running. If the graph is already running, the method has no effect.

The graph runs until the application calls the FilgraphManager.Pause, FilgraphManager.Stop, or FilgraphManager.StopWhenReady method. When playback reaches the end of the stream, the graph continues to run, although the filters do not stream any more data. At that point, the application can pause or stop the graph.

This method does not seek to the beginning of the stream. Therefore, if you run the graph, pause it, and then run it again, playback resumes from the paused position. If you run the graph after it has reached the end of the stream, nothing is rendered. To seek the graph, use the IMediaPosition object.

Requirements

Reference: Add a reference to ActiveMovie control type library.

Library: Quartz.dll.

See Also