Windows.Media.Core.MediaSource

September 2, 2020 ยท View on GitHub

-description

Represents a media source. Provides a common way to reference media from different sources and exposes a common model for accessing media data regardless of the underlying media format.

-remarks

Using one of the factory methods, you can create an instance of MediaSource from many different media source representations, including:

After getting a MediaSource instance, create a new MediaPlaybackItem wrapping the media source and pass the MediaPlaybackItem to one of the media playback objects, such as MediaPlayer or MediaElement.

For how-to guidance for using MediaSource to play back media, see Media items, playlists, and tracks.

Version history

Windows versionSDK versionValue added
151110586CreateFromMediaBinder
151110586Reset
151110586State
151110586StateChanged
170315063AdaptiveMediaSource
170315063MediaStreamSource
170315063MseStreamSource
170315063OpenAsync
170315063Uri
170916299CreateFromMediaFrameSource
180317134CreateFromDownloadOperation
180317134DownloadOperation

-examples

-see-also

Media items, playlists, and tracks, MediaPlaybackItem