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 ConstantDescriptionInsufficient buffer dataDecoder codec not supportedInternel errorUrl not foundThe parameter is incorrectInvalid connection stateMedia source is invalidInternal state errorip expiredNo resource errorNo errorformat not supportObject is not initializedtoken expiredError unknownUnknown stream typeUrl not foundVideo renderer is invalid -
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
No error -
PLAYER_REASON_INVALID_ARGUMENTS
The parameter is incorrect -
PLAYER_REASON_INTERNAL
Internel error -
PLAYER_REASON_NO_RESOURCE
No resource error -
PLAYER_REASON_INVALID_MEDIA_SOURCE
Media source is invalid -
PLAYER_REASON_UNKNOWN_STREAM_TYPE
Unknown stream type -
PLAYER_REASON_OBJ_NOT_INITIALIZED
Object is not initialized -
PLAYER_REASON_CODEC_NOT_SUPPORTED
Decoder codec not supported -
PLAYER_REASON_VIDEO_RENDER_FAILED
Video renderer is invalid -
PLAYER_REASON_INVALID_STATE
Internal state error -
PLAYER_REASON_URL_NOT_FOUND
Url not found -
PLAYER_REASON_INVALID_CONNECTION_STATE
Invalid connection state -
PLAY_REASON_SRC_BUFFER_UNDERFLOW
Insufficient buffer data -
PLAYER_REASON_INTERRUPTED
Url not found -
PLAYER_REASON_NOT_SUPPORTED
format not support -
PLAYER_REASON_TOKEN_EXPIRED
token expired -
PLAYER_REASON_IP_EXPIRED
ip expired -
PLAYER_REASON_UNKNOWN
Error unknown
-
-
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
-