Package io.agora.mediaplayer
Enum Class Constants.MediaPlayerReason
- All Implemented Interfaces:
Serializable,Comparable<Constants.MediaPlayerReason>,Constable
- Enclosing class:
- Constants
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription-12: The playback buffer is insufficient.-7: The codec is not supported.-2: Internal error.-13: The playback is interrupted.-1: Invalid arguments.-11: Invalid connection between the player and the Agora Server.-4: Invalid media resource.-9: An error with the internal state of the player occurs.ip expired-3: No resource.0: No error.-14: The SDK does not support the method being called.-6: The object is not initialized.-15: The authentication information of the media resource is expired.-17: An unknown error.-5: The media stream type is unknown.-10: The URL of the media resource cannot be found.-8: Invalid renderer. -
Method Summary
Modifier and TypeMethodDescriptionstatic Constants.MediaPlayerReasonfromNativeIndex(int nativeIndex) static Constants.MediaPlayerReasongetErrorByValue(int value) static intstatic Constants.MediaPlayerReasonReturns the enum constant of this class with the specified name.static Constants.MediaPlayerReason[]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_REASON_NONE
0: No error. -
PLAYER_REASON_INVALID_ARGUMENTS
-1: Invalid arguments. -
PLAYER_REASON_INTERNAL
-2: Internal error. -
PLAYER_REASON_NO_RESOURCE
-3: No resource. -
PLAYER_REASON_INVALID_MEDIA_SOURCE
-4: Invalid media resource. -
PLAYER_REASON_UNKNOWN_STREAM_TYPE
-5: The media stream type is unknown. -
PLAYER_REASON_OBJ_NOT_INITIALIZED
-6: The object is not initialized. -
PLAYER_REASON_CODEC_NOT_SUPPORTED
-7: The codec is not supported. -
PLAYER_REASON_VIDEO_RENDER_FAILED
-8: Invalid renderer. -
PLAYER_REASON_INVALID_STATE
-9: An error with the internal state of the player occurs. -
PLAYER_REASON_URL_NOT_FOUND
-10: The URL of the media resource cannot be found. -
PLAYER_REASON_INVALID_CONNECTION_STATE
-11: Invalid connection between the player and the Agora Server. -
PLAY_REASON_SRC_BUFFER_UNDERFLOW
-12: The playback buffer is insufficient. -
PLAYER_REASON_INTERRUPTED
-13: The playback is interrupted. -
PLAYER_REASON_NOT_SUPPORTED
-14: The SDK does not support the method being called. -
PLAYER_REASON_TOKEN_EXPIRED
-15: The authentication information of the media resource is expired. -
PLAYER_REASON_IP_EXPIRED
ip expired -
PLAYER_REASON_UNKNOWN
-17: An unknown error.
-
-
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
-
getErrorByValue
-