MFCreatePresentationClock function

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

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Mfidl.h

Library

Mf.lib

DLL

Mf.dll

See also

About the Media Session
Media Foundation Functions
IMFPresentationClock

 

 

Show: