public static enum Constants.MediaPlayerEvent extends java.lang.Enum<Constants.MediaPlayerEvent>
Enum Constant and Description |
---|
PLAYER_EVENT_AUDIO_TRACK_CHANGED
audio track changed
|
PLAYER_EVENT_BUFFER_LOW
player buffer low
|
PLAYER_EVENT_BUFFER_RECOVER
player buffer recover
|
PLAYER_EVENT_FIRST_DISPLAYED
first video displayed
|
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_REACH_CACHE_FILE_MAX_COUNT
reach cache max file count
|
PLAYER_EVENT_REACH_CACHE_FILE_MAX_SIZE
reach cache max file size
|
PLAYER_EVENT_SEEK_BEGIN
seek complete
|
PLAYER_EVENT_SEEK_COMPLETE
seek complete
|
PLAYER_EVENT_SEEK_ERROR
seek failed
|
PLAYER_EVENT_SWITCH_BEGIN
switch source begin
|
PLAYER_EVENT_SWITCH_COMPLETE
switch source complete
|
PLAYER_EVENT_SWITCH_ERROR
switch source error
|
PLAYER_EVENT_TRY_OPEN_FAILED
Triggered when retrying to open media fails
|
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_UNKNOWN
Event unknown
|
Modifier and Type | Method and Description |
---|---|
static Constants.MediaPlayerEvent |
fromNativeIndex(int nativeIndex) |
static Constants.MediaPlayerEvent |
getEventByValue(int value) |
static int |
getValue(Constants.MediaPlayerEvent type) |
static Constants.MediaPlayerEvent |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Constants.MediaPlayerEvent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Constants.MediaPlayerEvent PLAYER_EVENT_UNKNOWN
public static final Constants.MediaPlayerEvent PLAYER_EVENT_SEEK_BEGIN
public static final Constants.MediaPlayerEvent PLAYER_EVENT_SEEK_COMPLETE
public static final Constants.MediaPlayerEvent PLAYER_EVENT_SEEK_ERROR
public static final Constants.MediaPlayerEvent PLAYER_EVENT_AUDIO_TRACK_CHANGED
public static final Constants.MediaPlayerEvent PLAYER_EVENT_BUFFER_LOW
public static final Constants.MediaPlayerEvent PLAYER_EVENT_BUFFER_RECOVER
public static final Constants.MediaPlayerEvent PLAYER_EVENT_FREEZE_START
public static final Constants.MediaPlayerEvent PLAYER_EVENT_FREEZE_STOP
public static final Constants.MediaPlayerEvent PLAYER_EVENT_SWITCH_BEGIN
public static final Constants.MediaPlayerEvent PLAYER_EVENT_SWITCH_COMPLETE
public static final Constants.MediaPlayerEvent PLAYER_EVENT_SWITCH_ERROR
public static final Constants.MediaPlayerEvent PLAYER_EVENT_FIRST_DISPLAYED
public static final Constants.MediaPlayerEvent PLAYER_EVENT_REACH_CACHE_FILE_MAX_COUNT
public static final Constants.MediaPlayerEvent PLAYER_EVENT_REACH_CACHE_FILE_MAX_SIZE
public static final Constants.MediaPlayerEvent PLAYER_EVENT_TRY_OPEN_START
public static final Constants.MediaPlayerEvent PLAYER_EVENT_TRY_OPEN_SUCCEED
public static final Constants.MediaPlayerEvent PLAYER_EVENT_TRY_OPEN_FAILED
public static Constants.MediaPlayerEvent[] values()
for (Constants.MediaPlayerEvent c : Constants.MediaPlayerEvent.values()) System.out.println(c);
public static Constants.MediaPlayerEvent valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static int getValue(Constants.MediaPlayerEvent type)
public static Constants.MediaPlayerEvent fromNativeIndex(int nativeIndex)
public static Constants.MediaPlayerEvent getEventByValue(int value)