IMFMediaSession::GetClock method

Retrieves the Media Session's presentation clock.

Syntax


HRESULT GetClock(
  [out]  IMFClock **ppClock
);

Parameters

ppClock [out]

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

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return codeDescription
S_OK

The method succeeded.

E_UNEXPECTED

The Media Session does not have a presentation clock.

MF_E_SHUTDOWN

The Media Session has been shut down.

 

Remarks

The application can query the returned IMFClock pointer for the IMFPresentationClock interface. However, the application should not use this interface to control the state of the presentation clock. Instead, the application should always call the transport control methods on the Media Session's IMFMediaSession interface, such as Start, Stop, and Pause.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Mfidl.h

Library

Mfuuid.lib

See also

IMFMediaSession

 

 

Community Additions

ADD
Show:
© 2014 Microsoft