Package io.agora.mediaplayer
Enum Class Constants.MediaPlayerState
- All Implemented Interfaces:
Serializable,Comparable<Constants.MediaPlayerState>,Constable
- Enclosing class:
- Constants
Media type.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDo nothing state for state machine (internal)Player failedPlayer getting state (internal)Player idleNone state for state machine (internal)Media file opened successfullyOpening media filePlayer pausedPlayer pausing (internal)Player playback all loops completedPlayer playback one loop completedPlayer playingPlayer seeking state (internal)Player set track state (internal)The playback is stopped.Player stopping (internal)Player unknown -
Method Summary
Modifier and TypeMethodDescriptionstatic Constants.MediaPlayerStatefromNativeIndex(int nativeIndex) static Constants.MediaPlayerStategetStateByValue(int value) static intstatic Constants.MediaPlayerStateReturns the enum constant of this class with the specified name.static Constants.MediaPlayerState[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
PLAYER_STATE_UNKNOWN
Player unknown -
PLAYER_STATE_IDLE
Player idle -
PLAYER_STATE_OPENING
Opening media file -
PLAYER_STATE_OPEN_COMPLETED
Media file opened successfully -
PLAYER_STATE_PLAYING
Player playing -
PLAYER_STATE_PAUSED
Player paused -
PLAYER_STATE_PLAYBACK_COMPLETED
Player playback one loop completed -
PLAYER_STATE_PLAYBACK_ALL_LOOPS_COMPLETED
Player playback all loops completed -
PLAYER_STATE_STOPPED
The playback is stopped. -
PLAYER_STATE_PAUSING_INTERNAL
Player pausing (internal) -
PLAYER_STATE_STOPPING_INTERNAL
Player stopping (internal) -
PLAYER_STATE_SEEKING_INTERNAL
Player seeking state (internal) -
PLAYER_STATE_GETTING_INTERNAL
Player getting state (internal) -
PLAYER_STATE_NONE_INTERNAL
None state for state machine (internal) -
PLAYER_STATE_DO_NOTHING_INTERNAL
Do nothing state for state machine (internal) -
PLAYER_STATE_SET_TRACK_INTERNAL
Player set track state (internal) -
PLAYER_STATE_FAILED
Player failed
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
-
fromNativeIndex
-
getStateByValue
-