Language

PlaybackState Enum

Definition

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 android.media.metrics.PlaybackStateEvent.STATE_NOT_STARTED.

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 android.media.metrics.PlaybackStateEvent.STATE_JOINING_BACKGROUND.

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 android.media.metrics.PlaybackStateEvent.STATE_JOINING_FOREGROUND.

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 android.media.metrics.PlaybackStateEvent.STATE_PLAYING.

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 android.media.metrics.PlaybackStateEvent.STATE_PAUSED.

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 android.media.metrics.PlaybackStateEvent.STATE_SEEKING.

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 android.media.metrics.PlaybackStateEvent.STATE_BUFFERING.

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 android.media.metrics.PlaybackStateEvent.STATE_PAUSED_BUFFERING.

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 android.media.metrics.PlaybackStateEvent.STATE_SUPPRESSED.

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 android.media.metrics.PlaybackStateEvent.STATE_SUPPRESSED_BUFFERING.

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 android.media.metrics.PlaybackStateEvent.STATE_ENDED.

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 android.media.metrics.PlaybackStateEvent.STATE_STOPPED.

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 android.media.metrics.PlaybackStateEvent.STATE_FAILED.

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 android.media.metrics.PlaybackStateEvent.STATE_INTERRUPTED_BY_AD.

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 android.media.metrics.PlaybackStateEvent.STATE_ABANDONED.

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.

Applies to