Windows.Media.Playback.MediaPlaybackItem
September 2, 2020 ยท View on GitHub
-description
Represents a media item that can be played back. This class acts as a wrapper around a MediaSource that exposes the audio tracks, video tracks, and timed metadata tracks included in the media source.
-remarks
A MediaPlaybackItem can be passed directly to a player such as MediaPlayer, MediaElement or MediaPlayerElement. Or, you can even pass the player a list of multiple media playback items using the MediaPlaybackList class.
For how-to guidance for working with media items, see Media items, playlists, and tracks.
Version history
| Windows version | SDK version | Value added |
|---|---|---|
| 1511 | 10586 | FindFromMediaSource |
| 1607 | 14393 | MediaPlaybackItem(MediaSource,TimeSpan) |
| 1607 | 14393 | MediaPlaybackItem(MediaSource,TimeSpan,TimeSpan) |
| 1607 | 14393 | ApplyDisplayProperties |
| 1607 | 14393 | BreakSchedule |
| 1607 | 14393 | CanSkip |
| 1607 | 14393 | DurationLimit |
| 1607 | 14393 | GetDisplayProperties |
| 1607 | 14393 | StartTime |
| 1703 | 15063 | AutoLoadedDisplayProperties |
| 1703 | 15063 | IsDisabledInPlaybackList |
| 1703 | 15063 | TotalDownloadProgress |