IMFMediaEngine::SetPlaybackRate method (mfmediaengine.h)

Sets the current playback rate.

Syntax

HRESULT SetPlaybackRate(
  [in] double Rate
);

Parameters

[in] Rate

The playback rate, as a multiple of normal (1×) playback. A negative value indicates reverse playback.

Return value

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

Remarks

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

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

IMFMediaEngine