IMFMediaEngine::SetLoop method (mfmediaengine.h)

Specifies whether the Media Engine loops playback.

Syntax

HRESULT SetLoop(
  [in] BOOL Loop
);

Parameters

[in] Loop

Specify TRUE to enable looping, or FALSE to disable looping.

Return value

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

Remarks

If Loop is TRUE, playback loops back to the beginning when it reaches the end of the source.

This method corresponds to setting the loop 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