Export (0) Print
Expand All

IMFMediaSession::Pause method

Pauses the Media Session.

Syntax


HRESULT Pause();

Parameters

This method has no parameters.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return codeDescription
S_OK

The method succeeded.

MF_E_INVALIDREQUEST

The operation cannot be performed in the Media Session's current state.

MF_E_SHUTDOWN

The Media Session has been shut down.

MF_E_SESSION_PAUSEWHILESTOPPED

The Media Session cannot pause while stopped.

 

Remarks

This method pauses the presentation clock.

This method is asynchronous. When the operation completes, the Media Session sends an MESessionPaused event.

This method fails if the Media Session is stopped.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Mfidl.h

Library

Mfuuid.lib

See also

IMFMediaSession
MESessionPaused

 

 

Community Additions

ADD
Show:
© 2014 Microsoft