IMFMediaSource interface

Implemented by media source objects.

Media sources are objects that generate media data. For example, the data might come from a video file, a network stream, or a hardware device, such as a camera. Each media source contains one or more streams, and each stream delivers data of one type, such as audio or video.


The IMFMediaSource interface has these methods.

Method Description
IMFMediaSource::CreatePresentationDescriptor Retrieves a copy of the media source's presentation descriptor. Applications use the presentation descriptor to select streams and to get information about the source content.
IMFMediaSource::GetCharacteristics Retrieves the characteristics of the media source.
IMFMediaSource::Pause Pauses all active streams in the media source.
IMFMediaSource::Shutdown Shuts down the media source and releases the resources it is using.
IMFMediaSource::Start Starts, seeks, or restarts the media source by specifying where to start playback.
IMFMediaSource::Stop Stops all active streams in the media source.


In Windows 8, this interface is extended with IMFMediaSourceEx.


Minimum supported client Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header mfidl.h

See also


Media Foundation Interfaces

Media Sources