IMFMediaSession::Pause method (mfidl.h)
Pauses the Media Session.
Syntax
HRESULT Pause();
Return value
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
Return code | Description |
---|---|
|
The method succeeded. |
|
The operation cannot be performed in the Media Session's current state. |
|
The Media Session has been shut down. |
|
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
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | mfidl.h |
Library | Mfuuid.lib |