Player.Command
Artifact: androidx.media3:media3-common
@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = )
@IntDef(value = )
public annotation Player.Command
Commands that indicate which method calls are currently permitted on a particular
Player
instance.
The currently available commands can be inspected with getAvailableCommands
and isCommandAvailable
.
See the documentation of each command constant for the details of which methods it permits calling.
One of the following values:
COMMAND_PLAY_PAUSE
COMMAND_PREPARE
COMMAND_STOP
COMMAND_SEEK_TO_DEFAULT_POSITION
COMMAND_SEEK_IN_CURRENT_MEDIA_ITEM
COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM
COMMAND_SEEK_TO_PREVIOUS
COMMAND_SEEK_TO_NEXT_MEDIA_ITEM
COMMAND_SEEK_TO_NEXT
COMMAND_SEEK_TO_MEDIA_ITEM
COMMAND_SEEK_BACK
COMMAND_SEEK_FORWARD
COMMAND_SET_SPEED_AND_PITCH
COMMAND_SET_SHUFFLE_MODE
COMMAND_SET_REPEAT_MODE
COMMAND_GET_CURRENT_MEDIA_ITEM
COMMAND_GET_TIMELINE
COMMAND_GET_METADATA
COMMAND_SET_PLAYLIST_METADATA
COMMAND_SET_MEDIA_ITEM
COMMAND_CHANGE_MEDIA_ITEMS
COMMAND_GET_AUDIO_ATTRIBUTES
COMMAND_GET_VOLUME
COMMAND_GET_DEVICE_VOLUME
COMMAND_SET_VOLUME
COMMAND_SET_DEVICE_VOLUME
COMMAND_SET_DEVICE_VOLUME_WITH_FLAGS
COMMAND_ADJUST_DEVICE_VOLUME
COMMAND_ADJUST_DEVICE_VOLUME_WITH_FLAGS
COMMAND_SET_AUDIO_ATTRIBUTES
COMMAND_SET_VIDEO_SURFACE
COMMAND_GET_TEXT
COMMAND_SET_TRACK_SELECTION_PARAMETERS
COMMAND_GET_TRACKS
COMMAND_RELEASE