IMFMediaEngine::GetCurrentTime method

Gets the current playback position.

Syntax


double GetCurrentTime();

Parameters

This method has no parameters.

Return value

Returns the playback position, in seconds.

Remarks

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

Note that after you call Pause, the time returned by GetCurrentTime may not be precisely accurate. Apps that need a frame-accurate position value, such as media editors, should call FrameStep immediately after calling **Pause** before calling GetCurrentTime.

Requirements

Minimum supported client

Windows 8 [desktop apps | UWP apps]

Minimum supported server

Windows Server 2012 [desktop apps | UWP apps]

Minimum supported phone

Windows Phone 8

Header

Mfmediaengine.h

See also

IMFMediaEngine

 

 

Show: