Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IMFPresentationTimeSource interface

Provides the clock times for the presentation clock.


The IMFPresentationTimeSource interface inherits from IMFClock. IMFPresentationTimeSource also has these types of members:


The IMFPresentationTimeSource interface has these methods.


Retrieves the underlying clock that the presentation time source uses to generate its clock times.



This interface is implemented by presentation time sources. A presentation time source is an object that provides the clock time for the presentation clock. For example, the audio renderer is a presentation time source. The rate at which the audio renderer consumes audio samples determines the clock time. If the audio format is 44100 samples per second, the audio renderer will report that one second has passed for every 44100 audio samples it plays. In this case, the timing is provided by the sound card.

To set the presentation time source on the presentation clock, call IMFPresentationClock::SetTimeSource with a pointer to the time source's IMFPresentationTimeSource interface.

A presentation time source must also implement the IMFClockStateSink interface. The presentaton clock uses this interface to notify the time source when the clock state changes.

Media Foundation provides a presentation time source that is based on the system clock. To create this object, call the MFCreateSystemTimeSource function.


Minimum supported client

Windows Vista [desktop apps | UWP apps]

Minimum supported server

Windows Server 2008 [desktop apps | UWP apps]





See also

Media Foundation Interfaces
Presentation Clock



© 2018 Microsoft