IMFMediaSession::GetClock method (mfidl.h)
Retrieves the Media Session's presentation clock.
Syntax
HRESULT GetClock(
[out] IMFClock **ppClock
);
Parameters
[out] ppClock
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 code | Description |
---|---|
|
The method succeeded. |
|
The Media Session does not have a presentation clock. |
|
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
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | mfidl.h |
Library | Mfuuid.lib |