| Previous | Next |
| MF_E_BYTESTREAM_UNKNOWN_LENGTH | MF_E_FORMAT_CHANGE_NOT_SUPPORTED |
MF_E_SESSION_PAUSEWHILESTOPPED
MF_E_SESSION_PAUSEWHILESTOPPED is specific to the Media Session transport contract. IMFMediaSession::Pause pauses the presentation clock and completes asynchronously with MESessionPaused, but the method is not valid while the session is stopped.
Start the presentation before pausing it
- Track the last completed session state from Media Session events, not only the last method that application code called.
- Disable or queue Pause while the session is stopped or while a Start command is still pending.
- When implementing UI controls, update the transport state after
MESessionStartedandMESessionPausedrather than optimistically on button press.
This HRESULT is more precise than a generic wrong-state error. Recreating the topology or installing a decoder will not make Pause valid from the stopped state.
Microsoft: IMFMediaSession::Pause · Microsoft: controlling presentation states
Looking for a different code? Search another status or error code.