IMFClockStateSink::OnClockRestart Method

Called when the presentation clock restarts from the same position while paused.

Syntax

public:
HRESULT OnClockRestart(
         MFTIME hnsSystemTime
)  

Parameters

hnsSystemTime
Type: MFTIME 

The system time when the clock restarted, in 100-nanosecond units.

Return value

Type: HRESULT 

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Refer to Media Foundation return codes.

Remarks

This method is called if the presentation clock is paused and the IMFPresentationClock::Start method is called with the value PRESENTATION_CURRENT_POSITION.

The clock notifies the presentation time source by calling the time source’s OnClockRestart method. This call occurs synchronously within the Start method. If the time source returns an error from OnClockRestart, the presentation clock’s Start method returns an error and the state change does not take place.

For any object that is not the presentation time source, the OnClockRestart method is called asynchronously, after the state change is completed. In that case, the return value from this method is ignored.

Requirements

Header: Declared in mfidl.h.

Library: Use mfuuid.lib.