MediaPlaybackItemChangedReason Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |