IMediaPosition interface (control.h)
The IMediaPosition interface contains methods for seeking to a position within a stream.
This interface is exposed by the Filter Graph Manager as well as by individual filters. Applications should obtain an IMediaPosition interface pointer from the Filter Graph Manager, not from a filter. The Filter Graph Manager distributes method calls to all of the renderer filters. The renderer filters propagate the calls upstream to the source filters. This sequence of events ensures that all streams remain synchronized.
If one of the distributed calls returns an error, the Filter Graph Manager returns the first error value it received. Some of the distributed calls may have succeeded in this case. However, the filter graph does not return E_NOTIMPL unless all the distributed calls return E_NOTIMPL. If at least one filter in the graph implements the method, the Filter Graph Manager does not return E_NOTIMPL.
The IMediaPosition interface inherits from the IDispatch interface. IMediaPosition also has these types of members:
The IMediaPosition interface has these methods.
The CanSeekBackward method determines whether the filter graph can seek backward in the stream.
The CanSeekForward method determines whether the filter graph can seek forward in the stream.
The get_CurrentPosition method retrieves the current position, relative to the total duration of the stream.
The get_Duration method retrieves the duration of the stream.
The get_PrerollTime method retrieves the amount of data that will be queued before the start position.
The get_Rate method retrieves the playback rate.
The get_StopTime method retrieves the time at which the playback will stop, relative to the duration of the stream.
The put_CurrentPosition method sets the current position, relative to the total duration of the stream.
The put_PrerollTime method sets the amount of data that will be queued before the start position.
The put_Rate method sets the playback rate.
The put_StopTime method sets the time at which the playback will stop, relative to the duration of the stream.
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|
|Header||control.h (include Dshow.h)|