Skip to main content
IMFMediaEngine::SetLoop method

Specifies whether the Media Engine loops playback.

Syntax


HRESULT SetLoop(
  [in] BOOL Loop
);

Parameters

Loop [in]

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

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Minimum supported phone

Windows Phone 8

Header

Mfmediaengine.h

See also

IMFMediaEngine