IWMPlayerTimestampHook interface (wmdxva.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 IWMPlayerTimestampHook interface is implemented on a player's source filter. It enables the filter to modify the time stamps on the samples before sending them to the renderer.

This method is provided to provide the filter with a greater degree of control over the streaming process than would otherwise be possible. Specifically, the method enables changing video time stamps to allow playback at higher rates than normal.

When DirectX video acceleration is enabled, the OnSample method is never called. Therefore, if you plan to play video on a different timeline than a media timeline, this is the only chance to update the time stamp on the media sample to match the timeline.

Inheritance

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

Methods

The IWMPlayerTimestampHook interface has these methods.

 
IWMPlayerTimestampHook::MapTimestamp

The MapTimestamp method is called by the WMV Decoder DMO to enable the source filter to provide the decoder with a time stamp. The decoder applies the time stamp to the sample before delivering the sample to the video renderer.

Requirements

Requirement Value
Target Platform Windows
Header wmdxva.h

See also

Enabling DirectX Video Acceleration