PlaybackState 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 playback state reported by a media event.
public enum PlaybackState
type PlaybackState =
- Inheritance
-
PlaybackState
Fields
| Name | Value | Description |
|---|---|---|
| NotStarted | 0 | Playback has not started (initial state) Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| JoiningBackground | 1 | Playback is buffering in the background for initial playback start Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| JoiningForeground | 2 | Playback is buffering in the foreground for initial playback start Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| Playing | 3 | Playback is actively playing Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| Paused | 4 | Playback is paused but ready to play Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| Seeking | 5 | Playback is handling a seek. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| Buffering | 6 | Playback is buffering to resume active playback. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| PausedBuffering | 7 | Playback is buffering while paused. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| Suppressed | 9 | Playback is suppressed (e.g. due to audio focus loss). Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| SuppressedBuffering | 10 | Playback is suppressed (e.g. due to audio focus loss) while buffering to resume a playback. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| Ended | 11 | Playback has reached the end of the media. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| Stopped | 12 | Playback is stopped and can be restarted. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| Failed | 13 | Playback is stopped due a fatal error and can be retried. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| InterruptedByAd | 14 | Playback is interrupted by an ad. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| Abandoned | 15 | Playback is abandoned before reaching the end of the media. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
Remarks
This .NET enumeration represents the STATE_* integer constants declared by android.media.metrics.PlaybackStateEvent. Its members retain the corresponding Android numeric values.
Source: Android implementation.
Source: .NET enumeration generator.