Java android.media.session PlaybackState fields, constructors, methods, implement or subclass

Example usage for Java android.media.session PlaybackState fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.media.session PlaybackState.

The text is from its open source code.

Field

longACTION_STOP
Indicates this session supports the stop command.
longACTION_PAUSE
Indicates this session supports the pause command.
longACTION_PLAY
Indicates this session supports the play command.
longACTION_REWIND
Indicates this session supports the rewind command.
longACTION_SKIP_TO_PREVIOUS
Indicates this session supports the previous command.
longACTION_SKIP_TO_NEXT
Indicates this session supports the next command.
longACTION_FAST_FORWARD
Indicates this session supports the fast forward command.
longACTION_PLAY_PAUSE
Indicates this session supports the play/pause toggle command.
longACTION_PLAY_FROM_MEDIA_ID
Indicates this session supports the play from media id command.
longACTION_PLAY_FROM_SEARCH
Indicates this session supports the play from search command.
intSTATE_NONE
This is the default playback state and indicates that no media has been added yet, or the performer has been reset and has no content to play.
intSTATE_STOPPED
State indicating this item is currently stopped.
intSTATE_PAUSED
State indicating this item is currently paused.
intSTATE_PLAYING
State indicating this item is currently playing.
intSTATE_BUFFERING
State indicating this item is currently buffering and will begin playing when enough data has buffered.
intSTATE_ERROR
State indicating this item is currently in an error state.
intSTATE_CONNECTING
State indicating the class doing playback is currently connecting to a new destination.
longPLAYBACK_POSITION_UNKNOWN
Use this value for the position to indicate the position is not known.

Method

longgetActiveQueueItemId()
Get the id of the currently active item in the queue.
longgetPosition()
Get the current playback position in ms.
intgetState()
Get the current state of playback.