MFP_EVENT_HEADER structure (mfplay.h)

Important  Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.
 

Contains information that is common to every type of MFPlay event.

Syntax

typedef struct MFP_EVENT_HEADER {
  MFP_EVENT_TYPE        eEventType;
  HRESULT               hrEvent;
  IMFPMediaPlayer       *pMediaPlayer;
  MFP_MEDIAPLAYER_STATE eState;
  IPropertyStore        *pPropertyStore;
} MFP_EVENT_HEADER;

Members

eEventType

The type of event, specified as a member of the MFP_EVENT_TYPE enumeration.

hrEvent

Error or success code for the operation that caused the event.

pMediaPlayer

Pointer to the IMFPMediaPlayer interface of the MFPlay player object that sent the event.

eState

The new state of the MFPlay player object, specified as a member of the MFP_MEDIAPLAYER_STATE enumeration.

pPropertyStore

A pointer to the IPropertyStore interface of a property store object. The property store is used to hold additional event data for some event types. This member might be NULL.

Requirements

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

See also

IMFPMediaPlayerCallback

Media Foundation Structures

Using MFPlay for Audio/Video Playback