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.
| Topic | Description |
|---|---|
| Play audio and video with MediaPlayer | Shows you how to take advantage of the new features and improvements to the media playback system for UWP apps. |
| Media items, playlists, and tracks | Shows 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 Controls | Shows you how to integrate your app with the System Media Transport Controls (SMTC). |
| System-supported timed metadata cues | Describes how to take advantage of several formats of timed metadata that may be embedded in media files or streams. |
| Create, schedule, and manage media breaks | Shows you how to create, schedule, and manage media breaks to your media playback app. |
| Play media in the background | Shows you how to configure your app so that media continues to play when your app moves from the foreground to the background. |
| Adaptive Streaming | Describes how to add playback of adaptive streaming multimedia content to a Universal Windows Platform (UWP) apps. |
| Media casting | Shows you how to cast media to remote devices from a Universal Windows app. |
| PlayReady DRM | Describes 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.
- Adaptive streaming sample
- Background Audio sample
- System Media Transport sample
- 360-degree Video Playback sample
- Background media playback sample
- Video playback synchronization sample
Version history
| Windows version | SDK version | Value added |
|---|---|---|
| 1511 | 10586 | AddAudioEffect |
| 1511 | 10586 | RemoveAllEffects |
| 1607 | 14393 | AddVideoEffect |
| 1607 | 14393 | AudioBalance |
| 1607 | 14393 | AudioDevice |
| 1607 | 14393 | BreakManager |
| 1607 | 14393 | CommandManager |
| 1607 | 14393 | GetAsCastingSource |
| 1607 | 14393 | GetSurface |
| 1607 | 14393 | IsMutedChanged |
| 1607 | 14393 | PlaybackSession |
| 1607 | 14393 | RealTimePlayback |
| 1607 | 14393 | SetSurfaceSize |
| 1607 | 14393 | SourceChanged |
| 1607 | 14393 | StepBackwardOneFrame |
| 1607 | 14393 | StepForwardOneFrame |
| 1607 | 14393 | StereoscopicVideoRenderMode |
| 1607 | 14393 | TimelineController |
| 1607 | 14393 | TimelineControllerPositionOffset |
| 1703 | 15063 | CopyFrameToStereoscopicVideoSurfaces |
| 1703 | 15063 | CopyFrameToVideoSurface(IDirect3DSurface) |
| 1703 | 15063 | CopyFrameToVideoSurface(IDirect3DSurface,Rect) |
| 1703 | 15063 | IsVideoFrameServerEnabled |
| 1703 | 15063 | VideoFrameAvailable |
| 1709 | 16299 | RenderSubtitlesToSurface(IDirect3DSurface) |
| 1709 | 16299 | RenderSubtitlesToSurface(IDirect3DSurface,Rect) |
| 1709 | 16299 | SubtitleFrameChanged |
| 1803 | 17134 | AudioStateMonitor |