IMFMediaEngineEx::SetTimelineMarkerTimer method (mfmediaengine.h)

Specifies a presentation time when the Media Engine will send a marker event.

Syntax

HRESULT SetTimelineMarkerTimer(
  [in] double timeToFire
);

Parameters

[in] timeToFire

The presentation time for the marker event, in seconds.

Return value

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

Remarks

When playback reaches the time specified by timeToFire, the Media Engine sends an MF_MEDIA_ENGINE_EVENT_TIMELINE_MARKER event through the IMFMediaEngineNotify::EventNotify method. Calling this method cancels any previous marker that is still pending.

If the application seeks past the marker point, the Media Engine cancels the marker and does not send the event.

During forward playback, set timeToFire to a value greater than the current playback position. During reverse playback, set timeToFire to a value less than the playback position.

To cancel a marker, call IMFMediaEngineEx::CancelTimelineMarkerTimer.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 [desktop apps | UWP apps]
Target Platform Windows
Header mfmediaengine.h

See also

IMFMediaEngineEx