IMFMediaEngine::SetCurrentTime method

Seeks to a new playback position.

Syntax

HRESULT SetCurrentTime(
  double seekTime
);

Parameters

seekTime

The new playback position, in seconds.

Return Value

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

Remarks

This method corresponds to setting the currentTime attribute of the HTMLMediaElement interface in HTML5.

The method completes asynchronously. When the seek operation starts, the Media Engine sends an MF_MEDIA_ENGINE_EVENT_SEEKING event. When the seek operation completes, the Media Engine sends an MF_MEDIA_ENGINE_EVENT_SEEKED event. See IMFMediaEventNotify::EventNotify.

Requirements

   
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

IMFMediaEngine