Package com.google.android.exoplayer2
Annotation Type Player.Command
-
@Documented @Retention(SOURCE) @Target({FIELD,METHOD,PARAMETER,LOCAL_VARIABLE,TYPE_USE}) public static @interface Player.Command
Commands that indicate which method calls are currently permitted on a particularPlayer
instance.The currently available commands can be inspected with
Player.getAvailableCommands()
andPlayer.isCommandAvailable(int)
.See the documentation of each command constant for the details of which methods it permits calling.
One of the following values:
Player.COMMAND_PLAY_PAUSE
Player.COMMAND_PREPARE
Player.COMMAND_STOP
Player.COMMAND_SEEK_TO_DEFAULT_POSITION
Player.COMMAND_SEEK_IN_CURRENT_MEDIA_ITEM
Player.COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM
Player.COMMAND_SEEK_TO_PREVIOUS
Player.COMMAND_SEEK_TO_NEXT_MEDIA_ITEM
Player.COMMAND_SEEK_TO_NEXT
Player.COMMAND_SEEK_TO_MEDIA_ITEM
Player.COMMAND_SEEK_BACK
Player.COMMAND_SEEK_FORWARD
Player.COMMAND_SET_SPEED_AND_PITCH
Player.COMMAND_SET_SHUFFLE_MODE
Player.COMMAND_SET_REPEAT_MODE
Player.COMMAND_GET_CURRENT_MEDIA_ITEM
Player.COMMAND_GET_TIMELINE
Player.COMMAND_GET_METADATA
Player.COMMAND_SET_PLAYLIST_METADATA
Player.COMMAND_SET_MEDIA_ITEM
Player.COMMAND_CHANGE_MEDIA_ITEMS
Player.COMMAND_GET_AUDIO_ATTRIBUTES
Player.COMMAND_GET_VOLUME
Player.COMMAND_GET_DEVICE_VOLUME
Player.COMMAND_SET_VOLUME
Player.COMMAND_SET_DEVICE_VOLUME
Player.COMMAND_SET_DEVICE_VOLUME_WITH_FLAGS
Player.COMMAND_ADJUST_DEVICE_VOLUME
Player.COMMAND_ADJUST_DEVICE_VOLUME_WITH_FLAGS
Player.COMMAND_SET_VIDEO_SURFACE
Player.COMMAND_GET_TEXT
Player.COMMAND_SET_TRACK_SELECTION_PARAMETERS
Player.COMMAND_GET_TRACKS
Player.COMMAND_RELEASE