Enum Class Constants.MediaPlayerReason

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

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

    • PLAYER_REASON_NONE

      public static final Constants.MediaPlayerReason PLAYER_REASON_NONE
      0: No error.
    • PLAYER_REASON_INVALID_ARGUMENTS

      public static final Constants.MediaPlayerReason PLAYER_REASON_INVALID_ARGUMENTS
      -1: Invalid arguments.
    • PLAYER_REASON_INTERNAL

      public static final Constants.MediaPlayerReason PLAYER_REASON_INTERNAL
      -2: Internal error.
    • PLAYER_REASON_NO_RESOURCE

      public static final Constants.MediaPlayerReason PLAYER_REASON_NO_RESOURCE
      -3: No resource.
    • PLAYER_REASON_INVALID_MEDIA_SOURCE

      public static final Constants.MediaPlayerReason PLAYER_REASON_INVALID_MEDIA_SOURCE
      -4: Invalid media resource.
    • PLAYER_REASON_UNKNOWN_STREAM_TYPE

      public static final Constants.MediaPlayerReason PLAYER_REASON_UNKNOWN_STREAM_TYPE
      -5: The media stream type is unknown.
    • PLAYER_REASON_OBJ_NOT_INITIALIZED

      public static final Constants.MediaPlayerReason PLAYER_REASON_OBJ_NOT_INITIALIZED
      -6: The object is not initialized.
    • PLAYER_REASON_CODEC_NOT_SUPPORTED

      public static final Constants.MediaPlayerReason PLAYER_REASON_CODEC_NOT_SUPPORTED
      -7: The codec is not supported.
    • PLAYER_REASON_VIDEO_RENDER_FAILED

      public static final Constants.MediaPlayerReason PLAYER_REASON_VIDEO_RENDER_FAILED
      -8: Invalid renderer.
    • PLAYER_REASON_INVALID_STATE

      public static final Constants.MediaPlayerReason PLAYER_REASON_INVALID_STATE
      -9: An error with the internal state of the player occurs.
    • PLAYER_REASON_URL_NOT_FOUND

      public static final Constants.MediaPlayerReason PLAYER_REASON_URL_NOT_FOUND
      -10: The URL of the media resource cannot be found.
    • PLAYER_REASON_INVALID_CONNECTION_STATE

      public static final Constants.MediaPlayerReason PLAYER_REASON_INVALID_CONNECTION_STATE
      -11: Invalid connection between the player and the Agora Server.
    • PLAY_REASON_SRC_BUFFER_UNDERFLOW

      public static final Constants.MediaPlayerReason PLAY_REASON_SRC_BUFFER_UNDERFLOW
      -12: The playback buffer is insufficient.
    • PLAYER_REASON_INTERRUPTED

      public static final Constants.MediaPlayerReason PLAYER_REASON_INTERRUPTED
      -13: The playback is interrupted.
    • PLAYER_REASON_NOT_SUPPORTED

      public static final Constants.MediaPlayerReason PLAYER_REASON_NOT_SUPPORTED
      -14: The SDK does not support the method being called.
    • PLAYER_REASON_TOKEN_EXPIRED

      public static final Constants.MediaPlayerReason PLAYER_REASON_TOKEN_EXPIRED
      -15: The authentication information of the media resource is expired.
    • PLAYER_REASON_IP_EXPIRED

      public static final Constants.MediaPlayerReason PLAYER_REASON_IP_EXPIRED
      ip expired
    • PLAYER_REASON_UNKNOWN

      public static final Constants.MediaPlayerReason PLAYER_REASON_UNKNOWN
      -17: An unknown error.
  • Method Details

    • values

      public static Constants.MediaPlayerReason[] 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.MediaPlayerReason 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.MediaPlayerReason type)
    • fromNativeIndex

      public static Constants.MediaPlayerReason fromNativeIndex(int nativeIndex)
    • getErrorByValue

      public static Constants.MediaPlayerReason getErrorByValue(int value)