IMediaSource IMediaSource IMediaSource IMediaSource IMediaSource Interface


Represents a media source that delivers media samples to a media pipeline.

public : interface IMediaSource
struct winrt::Windows::Media::Core::IMediaSource
public interface IMediaSource
Public Interface IMediaSource
// You can't instantiate an interface directly in JavaScript. You can use objects that implement the interface, however.

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


The IMediaSource interface is implemented by the MediaStreamSource runtime class and can also be implemented by other runtime classes.

Runtime classes that implement this interface must also implement the IMFGetService interface and must support returning an IMFMediaSource or an IMFMediaSourceExtension interface when IMFGetService.GetService method is invoked for the MF_MEDIASOURCE_SERVICE service.