Expand Minimize

IMFMediaEngine interface

Enables an application to play audio or video files.

Members

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

Methods

The IMFMediaEngine interface has these methods.

MethodDescription
CanPlayType

Queries how likely it is that the Media Engine can play a specified type of media resource.

GetAutoPlay

Queries whether the Media Engine automatically begins playback.

GetBuffered

Queries how much resource data the media engine has buffered.

GetCurrentSource

Gets the URL of the current media resource, or an empty string if no media resource is present.

GetCurrentTime

Gets the current playback position.

GetDefaultPlaybackRate

Gets the default playback rate.

GetDuration

Gets the duration of the media resource.

GetError

Gets the most recent error status.

GetLoop

Queries whether the Media Engine will loop playback.

GetMuted

Queries whether the audio is muted.

GetNativeVideoSize

Gets the size of the video frame, adjusted for aspect ratio.

GetNetworkState

Gets the current network state of the media engine.

GetPlaybackRate

Gets the current playback rate.

GetPlayed

Gets the time ranges that have been rendered.

GetPreload

Gets the preload flag.

GetReadyState

Gets the ready state, which indicates whether the current media resource can be rendered.

GetSeekable

Gets the time ranges to which the Media Engine can currently seek.

GetStartTime

Gets the initial playback position.

GetVideoAspectRatio

Gets the picture aspect ratio of the video stream.

GetVolume

Gets the audio volume level.

HasAudio

Queries whether the current media resource contains an audio stream.

HasVideo

Queries whether the current media resource contains a video stream.

IsEnded

Queries whether playback has ended.

IsPaused

Queries whether playback is currently paused.

IsSeeking

Queries whether the Media Engine is currently seeking to a new playback position.

Load

Loads the current media source.

OnVideoStreamTick

Queries the Media Engine to find out whether a new video frame is ready.

Pause

Pauses playback.

Play

Starts playback.

SetAutoPlay

Specifies whether the Media Engine automatically begins playback.

SetCurrentTime

Seeks to a new playback position.

SetDefaultPlaybackRate

Sets the default playback rate.

SetErrorCode

Sets the current error code.

SetLoop

Specifies whether the Media Engine loops playback.

SetMuted

Mutes or unmutes the audio.

SetPlaybackRate

Sets the current playback rate.

SetPreload

Sets the preload flag.

SetSource

Sets the URL of a media resource.

SetSourceElements

Sets a list of media sources.

SetVolume

Sets the audio volume level.

Shutdown

Shuts down the Media Engine and releases the resources it is using.

TransferVideoFrame

Copies the current video frame to a DXGI surface or WIC bitmap.

 

Remarks

The Media Engine implements this interface. To create an instance of the Media Engine, call IMFMediaEngineClassFactory::CreateInstance.

This interface is extended with IMFMediaEngineEx.

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

Mfmediaengine.h

See also

Media Engine Sample

 

 

Community Additions

ADD
Show:
© 2014 Microsoft