Expand Minimize

IMFPresentationClock interface

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

Members

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

Methods

The IMFPresentationClock interface has these methods.

MethodDescription
AddClockStateSink

Registers an object to be notified whenever the clock starts, stops, or pauses, or changes rate.

GetTime

Retrieves the latest clock time.

GetTimeSource

Retrieves the clock's presentation time source.

Pause

Pauses the presentation clock.

RemoveClockStateSink

Unregisters an object that is receiving state-change notifications from the clock.

SetTimeSource

Sets the time source for the presentation clock.

Start

Starts the presentation clock.

Stop

Stops the presentation clock.

 

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

Minimum supported client

Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 [desktop apps | Windows Store apps]

Header

Mfidl.h

Library

Mfuuid.lib

See also

Media Foundation Interfaces
Presentation Clock

 

 

Community Additions

ADD
Show:
© 2014 Microsoft