Synchronous Reader Object

[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 synchronous reader object is used to read digital media files by using synchronous calls.

The synchronous reader object is created by the function WMCreateSyncReader, which sets a pointer to an IWMSyncReader interface. The other interfaces supported by the synchronous reader interface can be obtained by calling the QueryInterface method.

The following interfaces are supported by the synchronous reader object.

Interface Description
IWMHeaderInfo Sets and retrieves header information, such as metadata, markers, and so on.
IWMHeaderInfo2 Enumerates the available codec information. Inherits all of the methods of IWMHeaderInfo.
IWMHeaderInfo3 Supports large attribute sizes, duplicate attribute names, and multiple language support. Inherits all of the methods of IWMHeaderInfo and IWMHeaderInfo2.
IWMProfile Provides access to the profile information of the Windows Media file loaded into the reader.
IWMProfile2 Retrieves the globally unique identifier (GUID), if any, associated with the profile. Inherits all of the methods of IWMProfile.
IWMProfile3 Supports bandwidth sharing and stream prioritization information in the profile. Inherits all of the methods of IWMProfile and IWMProfile2.
IWMSyncReader Provides synchronous reading capabilities for digital media files.
IWMSyncReader2 Provides support for seeking to SMPTE time codes and for allocating samples manually. Inherits all of the methods of IWMSyncReader.

 

Objects

Reader Object

Reading Files with the Synchronous Reader