Partager via


_MFP_MEDIAITEM_CHARACTERISTICS 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.]

Contains flags that describe a media item.

Syntax

typedef enum _MFP_MEDIAITEM_CHARACTERISTICS {
  MFP_MEDIAITEM_IS_LIVE = 0x1,
  MFP_MEDIAITEM_CAN_SEEK = 0x2,
  MFP_MEDIAITEM_CAN_PAUSE = 0x4,
  MFP_MEDIAITEM_HAS_SLOW_SEEK = 0x8
} ;

Constants

 
MFP_MEDIAITEM_IS_LIVE
Value: 0x1
The media item represents a live data source, such as video camera. If playback is stopped and then restarted, there will be a gap in the content.
MFP_MEDIAITEM_CAN_SEEK
Value: 0x2
The media item supports seeking. If this flag is absent, the IMFPMediaPlayer::SetPosition method will fail.
MFP_MEDIAITEM_CAN_PAUSE
Value: 0x4
The media item can pause. If this flag is absent, the IMFPMediaPlayer::Pause method will likely fail.
MFP_MEDIAITEM_HAS_SLOW_SEEK
Value: 0x8
Seeking can take a long time. For example, the source might download content through HTTP.

Remarks

The following typedef is defined for combining flags from this enumeration.

typedef UINT32 MFP_MEDIAITEM_CHARACTERISTICS;

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

IMFPMediaItem::GetCharacteristics

Media Foundation Enumerations