Enum PlayerState
-
- All Implemented Interfaces:
-
java.io.Serializable,kotlin.Comparable
public enum PlayerState extends Enum<PlayerState>
Represents the various states of a video player throughout its lifecycle.
This enum defines the possible states that a video player can be in, from initialization to destruction, including playing, paused, and error states.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringnameprivate final Integerordinalprivate final EnumEntries<PlayerState>entries
-
Enum Constant Summary
Enum Constants Enum Constant Description STATE_INITIALIZEDThe player has been initialized but not yet prepared
STATE_PREPARINGThe player is currently preparing the media for playback
STATE_PREPAREDThe player has prepared the media and is ready to play
STATE_PLAYINGThe player is currently playing the video
STATE_PAUSEDThe player is paused
STATE_PLAYBACK_COMPLETEDThe player has completed playback of the current media
STATE_ERRORThe player has encountered an error
STATE_DESTROYEDThe player has been destroyed and resources released
-
Method Summary
Modifier and Type Method Description final PlayerStatevalueOf(String value)Returns the enum constant of this type with the specified name. final Array<PlayerState>values()Returns an array containing the constants of this enum type, in the order they're declared. final EnumEntries<PlayerState>getEntries()Represents the various states of a video player throughout its lifecycle. -
-
Method Detail
-
valueOf
final PlayerState valueOf(String value)
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.)
-
values
final Array<PlayerState> values()
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.
-
getEntries
final EnumEntries<PlayerState> getEntries()
Represents the various states of a video player throughout its lifecycle.
This enum defines the possible states that a video player can be in, from initialization to destruction, including playing, paused, and error states.
-
-
-
-