Export (0) Print
Expand All

IMediaSeeking interface

The IMediaSeeking interface contains methods for seeking to a position within a stream, and for setting the playback rate. The Filter Graph Manager exposes this interface, and so do individual filters or pins. Applications should query the Filter Graph Manager for the interface.

The Filter Graph Manager distributes any IMediaSeeking call to each of the renderer filters in the graph. The renderer filters send the call upstream to the source filters. This sequence of events ensures that all streams remain synchronized. If any of the distributed calls returns an error, the Filter Graph Manager returns the first error value it received, even if some of the distributed calls succeed. An exception is E_NOTIMPL: the Filter Graph Manager does not return E_NOTIMPL unless it was returned by all of the distributed calls.

An application can seek the graph while the graph is in any state (running, paused or stopped). If the graph is running, the Filter Graph Manager pauses the graph before it issues the seek command. Then it runs the graph again. All seeking operations are independent of the current playback rate. Seeking operations cause any pending media data to be flushed from the graph.

For all IMediaSeeking parameters that specify time, the unit of time depends on the current time format. To set the time format, call the IMediaSeeking::SetTimeFormat method. Time formats are globally unique identifiers (GUIDs) defined in uuids.h. For more information, see Time Format GUIDs.

Members

The IMediaSeeking interface inherits from the IUnknown interface. IMediaSeeking also has these types of members:

Methods

The IMediaSeeking interface has these methods.

MethodDescription
CheckCapabilities

Queries whether a stream has specified seeking capabilities.

ConvertTimeFormat

Converts from one time format to another.

GetAvailable

Gets the range of times in which seeking is efficient.

GetCapabilities

Retrieves all the seeking capabilities of the stream.

GetCurrentPosition

Gets the current position, relative to the total duration of the stream.

GetDuration

Gets the duration of the stream.

GetPositions

Gets the current position and the stop position, relative to the total duration of the stream.

GetPreroll

Gets the amount of data that will be queued before the start position.

GetRate

Gets the playback rate.

GetStopPosition

Gets the time at which the playback will stop, relative to the duration of the stream.

GetTimeFormat

Gets the time format that is currently being used for seek operations.

IsFormatSupported

Determines whether a specified time format is supported for seek operations.

IsUsingTimeFormat

Determines whether seek operations are currently using a specified time format.

QueryPreferredFormat

Gets the preferred time format for seeking.

SetPositions

Sets the current position and the stop position.

SetRate

Sets the playback rate.

SetTimeFormat

Sets the time format for subsequent seek operations.

 

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Strmif.h (include Dshow.h)

Library

Strmiids.lib

See also

Seeking the Filter Graph

 

 

Community Additions

ADD
Show:
© 2014 Microsoft