IMFPresentationClock::AddClockStateSink method
Registers an object to be notified whenever the clock starts, stops, or pauses, or changes rate.
Syntax
HRESULT AddClockStateSink(
[in] IMFClockStateSink *pStateSink
);
Parameters
- pStateSink [in]
-
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 |
|---|---|
|
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 | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2008 [desktop apps | Windows Store apps] |
|
Header |
|
|
Library |
|
See also