IMFPresentationClock::SetTimeSource method (mfidl.h)
Sets the time source for the presentation clock. The time source is the object that drives the clock by providing the current time.
Syntax
HRESULT SetTimeSource(
[in] IMFPresentationTimeSource *pTimeSource
);
Parameters
[in] pTimeSource
Pointer to the IMFPresentationTimeSource interface of the time source.
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 time source does not have a frequency of 10 MHz. |
|
The time source has not been initialized. |
Remarks
The presentation clock cannot start until it has a time source.
The time source is automatically registered to receive state change notifications from the clock, through the time source's IMFClockStateSink interface, which all time sources must implement.
This time source have a frequency of 10 MHz. See IMFClock::GetClockCharacteristics. If not, the method returns MF_E_CLOCK_NOT_SIMPLE.
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 | Mfuuid.lib |