MFCreatePresentationClock function (mfidl.h)

Creates the presentation clock. The presentation clock is used to schedule the time at which samples are rendered and to synchronize multiple streams.

Syntax

HRESULT MFCreatePresentationClock(
  IMFPresentationClock **ppPresentationClock
);

Parameters

ppPresentationClock

Receives a pointer to the clock's IMFPresentationClock interface. The caller must release the interface.

Return value

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

The caller must shut down the presentation clock by calling IMFShutdown::Shutdown on the clock.

Typically applications do not create the presentation clock. The Media Session automatically creates the presentation clock. To get a pointer to the presentation clock from the Media Session, call IMFMediaSession::GetClock.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header mfidl.h
Library Mf.lib
DLL Mf.dll

See also

About the Media Session

IMFPresentationClock

Media Foundation Functions