IMFPresentationClock::AddClockStateSink Method

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

Syntax

public:
HRESULT AddClockStateSink(
         IMFClockStateSink *pStateSink
)  

Parameters

pStateSink
Type: IMFClockStateSink *

[in, optional]

Pointer to the object’s IMFClockStateSink interface.

Return value

Type: HRESULT 

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

Return codes
Return code Description
S_OK The method succeeded.

Refer to Media Foundation return codes.

Remarks

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

Requirements

Header: Declared in mfidl.h.

Library: Use mfuuid.lib.