IMFMediaEngine::Play method (mfmediaengine.h)

Starts playback.

Syntax

HRESULT Play();

Return value

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

Remarks

This method corresponds to the play method of the HTMLMediaElement interface in HTML5.

The method completes asynchronously. When the operation starts, the Media Engine sends an MF_MEDIA_ENGINE_EVENT_PLAY event. When playback is under way, the Media Engine sends an MF_MEDIA_ENGINE_EVENT_PLAYING event. See IMFMediaEventNotify::EventNotify.

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