MediaPlaybackItemChangedReason Enum


Specifies the reason why the current MediaPlaybackItem in a MediaPlaybackList changed. Check for the reason by accessing the Reason property of the CurrentMediaPlaybackItemChangedEventArgs object passed into the MediaPlaybackList.CurrentItemChanged event.

public enum class MediaPlaybackItemChangedReason
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
enum MediaPlaybackItemChangedReason
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
public enum MediaPlaybackItemChangedReason
var value = Windows.Media.Playback.MediaPlaybackItemChangedReason.initialItem
Public Enum MediaPlaybackItemChangedReason

Windows 10 requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)


AppRequested 3

The current item changed because the app initiated the change.

EndOfStream 1

The current item changed because the previous item in the list played successfully to the end of its media stream.

Error 2

The current item changed because there was an error playing back the previous item in the list.

InitialItem 0

The current item is the first item in the playback list.

Applies to