Enum Class Constants.MediaPlayerState

java.lang.Object
java.lang.Enum<Constants.MediaPlayerState>
io.agora.mediaplayer.Constants.MediaPlayerState
All Implemented Interfaces:
Serializable, Comparable<Constants.MediaPlayerState>, Constable
Enclosing class:
Constants

public static enum Constants.MediaPlayerState extends Enum<Constants.MediaPlayerState>
  • Enum Constant Details

    • PLAYER_STATE_UNKNOWN

      public static final Constants.MediaPlayerState PLAYER_STATE_UNKNOWN
      -1: The player state is unknown.
    • PLAYER_STATE_IDLE

      public static final Constants.MediaPlayerState PLAYER_STATE_IDLE
      0: The default state. The media player returns this state code before you open the media resource or after you stop the playback.
    • PLAYER_STATE_OPENING

      public static final Constants.MediaPlayerState PLAYER_STATE_OPENING
      1: Opening the media resource.
    • PLAYER_STATE_OPEN_COMPLETED

      public static final Constants.MediaPlayerState PLAYER_STATE_OPEN_COMPLETED
      2: Opens the media resource successfully.
    • PLAYER_STATE_PLAYING

      public static final Constants.MediaPlayerState PLAYER_STATE_PLAYING
      3: The media resource is playing.
    • PLAYER_STATE_PAUSED

      public static final Constants.MediaPlayerState PLAYER_STATE_PAUSED
      4: Pauses the playback.
    • PLAYER_STATE_PLAYBACK_COMPLETED

      public static final Constants.MediaPlayerState PLAYER_STATE_PLAYBACK_COMPLETED
      5: The playback is complete.
    • PLAYER_STATE_PLAYBACK_ALL_LOOPS_COMPLETED

      public static final Constants.MediaPlayerState PLAYER_STATE_PLAYBACK_ALL_LOOPS_COMPLETED
      6: The loop is complete.
    • PLAYER_STATE_STOPPED

      public static final Constants.MediaPlayerState PLAYER_STATE_STOPPED
      7: The playback stops.
    • PLAYER_STATE_PAUSING_INTERNAL

      public static final Constants.MediaPlayerState PLAYER_STATE_PAUSING_INTERNAL
      Player pausing (internal)
    • PLAYER_STATE_STOPPING_INTERNAL

      public static final Constants.MediaPlayerState PLAYER_STATE_STOPPING_INTERNAL
      Player stopping (internal)
    • PLAYER_STATE_SEEKING_INTERNAL

      public static final Constants.MediaPlayerState PLAYER_STATE_SEEKING_INTERNAL
      Player seeking state (internal)
    • PLAYER_STATE_GETTING_INTERNAL

      public static final Constants.MediaPlayerState PLAYER_STATE_GETTING_INTERNAL
      Player getting state (internal)
    • PLAYER_STATE_NONE_INTERNAL

      public static final Constants.MediaPlayerState PLAYER_STATE_NONE_INTERNAL
      None state for state machine (internal)
    • PLAYER_STATE_DO_NOTHING_INTERNAL

      public static final Constants.MediaPlayerState PLAYER_STATE_DO_NOTHING_INTERNAL
      Do nothing state for state machine (internal)
    • PLAYER_STATE_SET_TRACK_INTERNAL

      public static final Constants.MediaPlayerState PLAYER_STATE_SET_TRACK_INTERNAL
      Player set track state (internal)
    • PLAYER_STATE_FAILED

      public static final Constants.MediaPlayerState PLAYER_STATE_FAILED
      100: The media player fails to play the media resource.
  • Method Details

    • values

      public static Constants.MediaPlayerState[] 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

      public static Constants.MediaPlayerState valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getValue

      public static int getValue(Constants.MediaPlayerState type)
    • fromNativeIndex

      public static Constants.MediaPlayerState fromNativeIndex(int nativeIndex)
    • getStateByValue

      public static Constants.MediaPlayerState getStateByValue(int value)