IMFPresentationClock Interface

Represents a presentation clock, which is used to schedule when samples are rendered and to synchronize multiple streams.

Syntax

interface IMFPresentationClock : public IMFClock  

Remarks

To create a new instance of the presentation clock, call the MFCreatePresentationClock function. The presentation clock must have a time source, which is an object that provides the clock times. For example, the audio renderer is a time source that uses the sound card to drive the clock. Time sources expose the IMFPresentationTimeSource interface. To set the time source, call SetTimeSource. The presentation clock does not begin running until the Start method is called.

To get the presentation clock from the Media Session, call IMFMediaSession::GetClock.

Requirements

Header: Declared in mfidl.h.

Library: Use mfuuid.lib.