MediaPlaybackItemChangedReason MediaPlaybackItemChangedReason MediaPlaybackItemChangedReason MediaPlaybackItemChangedReason MediaPlaybackItemChangedReason Enum

Definition

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
enum class winrt::Windows::Media::Playback::MediaPlaybackItemChangedReason : int32_t
public enum MediaPlaybackItemChangedReason
Public Enum MediaPlaybackItemChangedReason
var value = Windows.Media.Playback.MediaPlaybackItemChangedReason.appRequested;
Attributes

Windows 10 requirements

Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

Fields

AppRequested AppRequested AppRequested AppRequested AppRequested 3

The current item changed because the app initiated the change.

EndOfStream EndOfStream EndOfStream EndOfStream EndOfStream 1

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

Error Error Error Error Error 2

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

InitialItem InitialItem InitialItem InitialItem InitialItem 0

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