IMFPMediaItem interface

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

Represents a media item. A media item is an abstraction for a source of media data, such as a video file. Use this interface to get information about the source, or to change certain playback settings, such as the start and stop times. To get a pointer to this interface, call one of the following methods:

Members

The IMFPMediaItem interface inherits from the IUnknown interface. IMFPMediaItem also has these types of members:

Methods

The IMFPMediaItem interface has these methods.

MethodDescription
GetCharacteristics

Gets various flags that describe the media item.

GetDuration

Gets the duration of the media item.

GetMediaPlayer

Retrieves a pointer to the MFPlay player object that created the media item.

GetMetadata

Gets a property store that contains metadata for the source.

GetNumberOfStreams

Gets the number of streams (audio, video, and other) in the media item.

GetObject

Gets the object that was used to create the media item.

GetPresentationAttribute

Queries the media item for a presentation attribute.

GetStartStopPosition

Gets the start and stop times for the media item.

GetStreamAttribute

Queries the media item for a stream attribute.

GetStreamSelection

Queries whether a stream is selected to play.

GetURL

Gets the URL that was used to create the media item.

GetUserData

Gets the application-defined value stored in the media item.

HasAudio

Queries whether the media item contains an audio stream.

HasVideo

Queries whether the media item contains a video stream.

IsProtected

Queries whether the media item contains protected content.

SetStartStopPosition

Sets the start and stop times for the media item.

SetStreamSelection

Selects or deselects a stream.

SetStreamSink

Sets a media sink for the media item.

SetUserData

Sets an application-defined value that is stored in the media item.

 

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Mfplay.h

See also

Media Foundation Interfaces
Using MFPlay for Audio/Video Playback

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.