IMFMediaSource interface (mfidl.h)

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 inherits from IMFMediaEventGenerator. IMFMediaSource also has these types of members:


The IMFMediaSource interface has these methods.


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.

Retrieves the characteristics of the media source.

Pauses all active streams in the media source.

Shuts down the media source and releases the resources it is using.

Starts, seeks, or restarts the media source by specifying where to start playback.

Stops all active streams in the media source.


In Windows 8, this interface is extended with IMFMediaSourceEx.

For some device sources, such as cameras or microphones, the IMFMediaSource also implements the IKsControl which can be used by user mode applications to issue KSPROPERTY, KSEVENT and KSMETHOD operations to the underlying device driver.


This interface is optional and may not be available. If this interface is not available, QueryInterface will return E_NOINTERFACE.


Requirement Value
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