Compartir a través de


IWMSyncReader2 interface (wmsdkidl.h)

[The feature associated with this page, Windows Media Format 11 SDK, is a legacy feature. It has been superseded by Source Reader and Sink Writer. Source Reader and Sink Writer have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use Source Reader and Sink Writer instead of Windows Media Format 11 SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The IWMSyncReader2 interface provides advanced features for the synchronous reader. It contains methods for allocating samples manually and for seeking to SMPTE time codes.

An IWMSyncReader2 interface exists for every synchronous reader object. You can obtain a pointer to an instance of this interface by calling the QueryInterface method of any other interface of the synchronous reader object.

Inheritance

The IWMSyncReader2 interface inherits from IWMSyncReader. IWMSyncReader2 also has these types of members:

Methods

The IWMSyncReader2 interface has these methods.

 
IWMSyncReader2::GetAllocateForOutput

The GetAllocateForOutput method retrieves an interface for allocating output samples.
IWMSyncReader2::GetAllocateForStream

The GetAllocateForStream method retrieves an interface for allocating stream samples.
IWMSyncReader2::SetAllocateForOutput

The SetAllocateForOutput method sets a sample allocation callback interface for allocating output samples.
IWMSyncReader2::SetAllocateForStream

The SetAllocateForStream method sets a sample allocation callback interface for allocating stream samples.
IWMSyncReader2::SetRangeByFrameEx

The SetRangeByFrameEx method configures the synchronous reader to read a portion of the file specified by a starting video frame number and a number of frames to read. This method also retrieves the presentation time of the requested frame number.
IWMSyncReader2::SetRangeByTimecode

The SetRangeByTimecode method sets a starting and ending time, based on SMPTE time codes, for playback of a file.

Requirements

Requirement Value
Target Platform Windows
Header wmsdkidl.h

See also

IWMSyncReader Interface

Interfaces