Registers an object to be notified whenever the clock starts, stops, or pauses, or changes rate.
public:
HRESULT AddClockStateSink(
IMFClockStateSink *pStateSink
)
pStateSink
Type: IMFClockStateSink *
[in, optional]
Pointer to the object’s IMFClockStateSink interface.
Type: HRESULT
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. |
Refer to Media Foundation return codes.
Before releasing the object, call IMFPresentationClock::RemoveClockStateSink to unregister the object for state-change notifications.
Header: Declared in mfidl.h.
Library: Use mfuuid.lib.