Windows.Media.Playback.MediaPlaybackList

September 2, 2020 ยท View on GitHub

-description

Represents a list of MediaPlaybackItem objects that can be played back. Provides methods for switching the currently playing item and enabling looping and shuffling.

-remarks

Items in a MediaPlaybackList are rendered using gapless playback. The system will use provided metadata in MP3 or AAC encoded files to determine the delay or padding compensation needed for gapless playback. If the MP3 or AAC encoded files don't provide this metadata, then the system determines the delay or padding heuristically. For lossless formats, such as PCM, FLAC, or ALAC, the system takes no action because these encoders don't introduce delay or padding.

For how-to guidance for working with media items, see Media items, playlists, and tracks.

Version history

Windows versionSDK versionValue added
151110586MaxPrefetchTime
151110586SetShuffledItems
151110586ShuffledItems
151110586StartingItem
170315063MaxPlayedItemsToKeepOpen

-examples

-see-also

IMediaPlaybackSource, Media items, playlists, and tracks, Background media playback sample