IMFPresentationClock::AddClockStateSink method (mfidl.h)

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

Syntax

HRESULT AddClockStateSink(
  [in] IMFClockStateSink *pStateSink
);

Parameters

[in] 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