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.
HRESULT SetTimeSource(
[in] IMFPresentationTimeSource *pTimeSource
);
[in] pTimeSource
Pointer to the IMFPresentationTimeSource interface of the time source.
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. |
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.
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 |