Redigera

Dela via


Rendering Content

[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 Windows Media Format SDK does not provide any routines for rendering content delivered by the reader object. If you write applications to play back the content in ASF files, you must implement your own rendering routines.

You must be careful when rendering content to ensure that samples are rendered in order of presentation time and that samples from different streams are synchronized when rendering. The method you employ to ensure stream synchronization will depend upon the rendering technique you use for your application. In general, if you have audio and video streams, you should synchronize to the audio stream, because inconsistency in the audio stream is more noticeable than a few dropped frames in a video stream.

Reading ASF Files

To Retrieve Media Samples with the Asynchronous Reader

To Retrieve Media Samples with the Synchronous Reader