Package com.castlabs.android.player
Enum PlayerController.State
- All Implemented Interfaces:
Serializable
,Comparable<PlayerController.State>
- Enclosing class:
PlayerController
Represents states of the player backend.
-
Enum Constant Summary
Enum ConstantDescriptionThe player does not have enough data to start playing and is buffering now.Playback finished successfully and the end of the data stream was reached.The player controller is not prepared or preparing and no content is loaded This is the initial player state and the state the player returns to after it is destroyed.The player is prepared and has enough data to start playback immediately but is currently pausedThe player is prepared and currently playingThe player started loading content afterPlayerController.open(PlayerConfig)
was called and is loading the content meta-data. -
Method Summary
Modifier and TypeMethodDescriptionstatic PlayerController.State
Returns the enum constant of this type with the specified name.static PlayerController.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Idle
The player controller is not prepared or preparing and no content is loaded This is the initial player state and the state the player returns to after it is destroyed. This state is usually followed by thePreparing
state. -
Preparing
The player started loading content afterPlayerController.open(PlayerConfig)
was called and is loading the content meta-data. -
Buffering
The player does not have enough data to start playing and is buffering now. This state is usually reached after the player finishedPreparing
, the position was changed and the player is seeking, or a buffer under-run occurred. -
Pausing
The player is prepared and has enough data to start playback immediately but is currently paused -
Playing
The player is prepared and currently playing -
Finished
Playback finished successfully and the end of the data stream was reached.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-