Windows.Media.Playback.MediaPlayer

September 2, 2020 ยท View on GitHub

-description

Provides access to media playback functionality such as play, pause, fast-forward, rewind, and volume.

-remarks

The Media playback section of the documentation contains how-to articles that provide detailed guidance for adding media playback features to your app. The following table lists some of the available articles.

TopicDescription
Play audio and video with MediaPlayerShows you how to take advantage of the new features and improvements to the media playback system for UWP apps.
Media items, playlists, and tracksShows you how to use the MediaSource class, which provides a common way to reference and play back media from different sources such as local or remote files and exposes a common model for accessing media data, regardless of the underlying media format.
Integrate with the System Media Transport ControlsShows you how to integrate your app with the System Media Transport Controls (SMTC).
System-supported timed metadata cuesDescribes how to take advantage of several formats of timed metadata that may be embedded in media files or streams.
Create, schedule, and manage media breaksShows you how to create, schedule, and manage media breaks to your media playback app.
Play media in the backgroundShows you how to configure your app so that media continues to play when your app moves from the foreground to the background.
Adaptive StreamingDescribes how to add playback of adaptive streaming multimedia content to a Universal Windows Platform (UWP) apps.
Media castingShows you how to cast media to remote devices from a Universal Windows app.
PlayReady DRMDescribes how to add PlayReady protected media content to your Universal Windows Platform (UWP) app.

Media playback SDK samples

The following SDK samples demonstrate the media playback features available to UWP apps on Windows 10. Use these samples to see the media playback APIs used in context or as a starting point for your own app.

Version history

Windows versionSDK versionValue added
151110586AddAudioEffect
151110586RemoveAllEffects
160714393AddVideoEffect
160714393AudioBalance
160714393AudioDevice
160714393BreakManager
160714393CommandManager
160714393GetAsCastingSource
160714393GetSurface
160714393IsMutedChanged
160714393PlaybackSession
160714393RealTimePlayback
160714393SetSurfaceSize
160714393SourceChanged
160714393StepBackwardOneFrame
160714393StepForwardOneFrame
160714393StereoscopicVideoRenderMode
160714393TimelineController
160714393TimelineControllerPositionOffset
170315063CopyFrameToStereoscopicVideoSurfaces
170315063CopyFrameToVideoSurface(IDirect3DSurface)
170315063CopyFrameToVideoSurface(IDirect3DSurface,Rect)
170315063IsVideoFrameServerEnabled
170315063VideoFrameAvailable
170916299RenderSubtitlesToSurface(IDirect3DSurface)
170916299RenderSubtitlesToSurface(IDirect3DSurface,Rect)
170916299SubtitleFrameChanged
180317134AudioStateMonitor

-examples

-see-also