IMFPresentationClock::AddClockStateSink method

Registers an object to be notified whenever the clock starts, stops, or pauses, or changes rate.

Syntax

HRESULT AddClockStateSink(
  IMFClockStateSink *pStateSink
);

Parameters

pStateSink

Pointer to the object's IMFClockStateSink interface.

Return Value

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

Return code Description
S_OK
The method succeeded.

Remarks

Before releasing the object, call IMFPresentationClock::RemoveClockStateSink to unregister the object for state-change notifications.

Requirements

   
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

See Also

IMFPresentationClock

Presentation Clock