Dela via


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
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
enum class MediaPlaybackItemChangedReason
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
public enum MediaPlaybackItemChangedReason
var value = Windows.Media.Playback.MediaPlaybackItemChangedReason.initialItem
Public Enum MediaPlaybackItemChangedReason
Inheritance
MediaPlaybackItemChangedReason
Attributes

Windows requirements

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

Fields

Name Value Description
InitialItem 0

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

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.

AppRequested 3

The current item changed because the app initiated the change.

Applies to