Compartir a través de


MFP_MEDIAPLAYER_STATE enumeration (mfplay.h)

[The feature associated with this page, MFPlay, is a legacy feature. It has been superseded by MediaPlayer and IMFMediaEngine. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer and IMFMediaEngine instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

Specifies the current playback state.

Syntax

typedef enum MFP_MEDIAPLAYER_STATE {
  MFP_MEDIAPLAYER_STATE_EMPTY = 0,
  MFP_MEDIAPLAYER_STATE_STOPPED = 0x1,
  MFP_MEDIAPLAYER_STATE_PLAYING = 0x2,
  MFP_MEDIAPLAYER_STATE_PAUSED = 0x3,
  MFP_MEDIAPLAYER_STATE_SHUTDOWN = 0x4
} ;

Constants

 
MFP_MEDIAPLAYER_STATE_EMPTY
Value: 0
Initial state. No media items have been set on the player object.
MFP_MEDIAPLAYER_STATE_STOPPED
Value: 0x1
Playback is stopped.
MFP_MEDIAPLAYER_STATE_PLAYING
Value: 0x2
Playback is in progress.
MFP_MEDIAPLAYER_STATE_PAUSED
Value: 0x3
Playback is paused.
MFP_MEDIAPLAYER_STATE_SHUTDOWN
Value: 0x4
The player object was shut down. This state is returned after the application calls IMFPMediaPlayer::Shutdown.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Header mfplay.h

See also

IMFPMediaPlayer::GetState

Media Foundation Enumerations