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 versionSDK versionValue added
151110586FindFromMediaSource
160714393MediaPlaybackItem(MediaSource,TimeSpan)
160714393MediaPlaybackItem(MediaSource,TimeSpan,TimeSpan)
160714393ApplyDisplayProperties
160714393BreakSchedule
160714393CanSkip
160714393DurationLimit
160714393GetDisplayProperties
160714393StartTime
170315063AutoLoadedDisplayProperties
170315063IsDisabledInPlaybackList
170315063TotalDownloadProgress

-examples

-see-also

IMediaPlaybackSource, Media items, playlists, and tracks