Package io.agora.mediaplayer
Enum Class Constants.MediaPlayerEvent
- All Implemented Interfaces:
Serializable,Comparable<Constants.MediaPlayerEvent>,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 ConstantDescriptionaudio track changedplayer buffer lowplayer buffer recoverfirst video displayedThe video or audio is interruptedInterrupt at the end of the video or audioTriggered when an http redirect occursreach cache max file countreach cache max file sizeseek completeseek completeseek failedswitch source beginswitch source completeswitch source errorTriggered when retrying to open media failsTriggered when a retry is required to open the mediaTriggered when the retry to open the media is successfulEvent unknown -
Method Summary
Modifier and TypeMethodDescriptionstatic Constants.MediaPlayerEventfromNativeIndex(int nativeIndex) static Constants.MediaPlayerEventgetEventByValue(int value) static intstatic Constants.MediaPlayerEventReturns the enum constant of this class with the specified name.static Constants.MediaPlayerEvent[]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_EVENT_UNKNOWN
Event unknown -
PLAYER_EVENT_SEEK_BEGIN
seek complete -
PLAYER_EVENT_SEEK_COMPLETE
seek complete -
PLAYER_EVENT_SEEK_ERROR
seek failed -
PLAYER_EVENT_AUDIO_TRACK_CHANGED
audio track changed -
PLAYER_EVENT_BUFFER_LOW
player buffer low -
PLAYER_EVENT_BUFFER_RECOVER
player buffer recover -
PLAYER_EVENT_FREEZE_START
The video or audio is interrupted -
PLAYER_EVENT_FREEZE_STOP
Interrupt at the end of the video or audio -
PLAYER_EVENT_SWITCH_BEGIN
switch source begin -
PLAYER_EVENT_SWITCH_COMPLETE
switch source complete -
PLAYER_EVENT_SWITCH_ERROR
switch source error -
PLAYER_EVENT_FIRST_DISPLAYED
first video displayed -
PLAYER_EVENT_REACH_CACHE_FILE_MAX_COUNT
reach cache max file count -
PLAYER_EVENT_REACH_CACHE_FILE_MAX_SIZE
reach cache max file size -
PLAYER_EVENT_TRY_OPEN_START
Triggered when a retry is required to open the media -
PLAYER_EVENT_TRY_OPEN_SUCCEED
Triggered when the retry to open the media is successful -
PLAYER_EVENT_TRY_OPEN_FAILED
Triggered when retrying to open media fails -
PLAYER_EVENT_HTTP_REDIRECT
Triggered when an http redirect occurs
-
-
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
-
getEventByValue
-