PlayState Enumeration
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Indicates the possible states that the player can be in, with respect to the current application's background audio.
Namespace: Microsoft.Phone.BackgroundAudio
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
Syntax
Public Enumeration PlayState
public enum PlayState
<object property="enumerationValue" .../>
Members
Member name | Description | |
---|---|---|
Unknown | The current PlayState is indeterminate. For example, a new AudioTrack has been set, but playback has not been initiated. | |
Stopped | No playback is occurring in this application. | |
Paused | Playback for this application is paused. | |
Playing | This application is currently playing a track. | |
BufferingStarted | The current track has started buffering. | |
BufferingStopped | The current track has stopped buffering. | |
TrackReady | The current track is ready for playback. | |
TrackEnded | The last track has ended and this application is currently changing tracks. | |
Rewinding | The current track is rewinding. | |
FastForwarding | The current track is fast-forwarding. | |
Shutdown | The application has shut down. | |
Error | An error occurred. |
Remarks
This does not represent background audio being played from other applications. For example, even if the PlayState is Stopped, there might still be media playing from another application.
Version Information
Windows Phone OS
Supported in: 8.1, 8.0, 7.1
Platforms
Windows Phone
See Also
Reference
Microsoft.Phone.BackgroundAudio Namespace