Export (0) Print
Expand All

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 codeDescription
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 | Windows Store apps]

Minimum supported server

Windows Server 2008 [desktop apps | Windows Store apps]

Header

Mfidl.h

Library

Mfuuid.lib

See also

IMFPresentationClock
Presentation Clock

 

 

Community Additions

ADD
Show:
© 2014 Microsoft