Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IMFPresentationClock::SetTimeSource method

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

pTimeSource [in]

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 codeDescription
S_OK

The method succeeded.

MF_E_CLOCK_NOT_SIMPLE

The time source does not have a frequency of 10 MHz.

MF_E_NOT_INITIALIZED

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

Minimum supported client

Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 [desktop apps | Windows Store apps]

Header

Mfidl.h

Library

Mfuuid.lib

See also

IMFPresentationClock
Presentation Clock

 

 

Show:
© 2017 Microsoft