public interface IPlayerEventsListener
Modifier and Type | Field and Description |
---|---|
static int |
PLAYER_EVENT_APP_SENT_TO_BACKGROUND
The app has been sent to the background
|
static int |
PLAYER_EVENT_APP_SENT_TO_FOREGROUND
The app has been sent to the foreground
|
static int |
PLAYER_EVENT_TYPE_END_REBUFFERING
Indicate the last rebuffering event has ended
|
static int |
PLAYER_EVENT_TYPE_ERROR
Indicate an error has occurred
|
static int |
PLAYER_EVENT_TYPE_FINISHED
Indicate the end of the playback
|
static int |
PLAYER_EVENT_TYPE_FULLSCREEN_MODE_CHANGE
Indicate a fullscreen mode being selected
|
static int |
PLAYER_EVENT_TYPE_LOAD_REQUESTED
There is a request for loading a new video.
|
static int |
PLAYER_EVENT_TYPE_LOADING
Indicate the control is loading a media resource
|
static int |
PLAYER_EVENT_TYPE_PAUSE_REQUESTED
Pause method called
|
static int |
PLAYER_EVENT_TYPE_POSITION_UPDATE
Indicate a time position change.
|
static int |
PLAYER_EVENT_TYPE_RESUME_REQUESTED
Resume method called
|
static int |
PLAYER_EVENT_TYPE_SIZE_CHANGE
Video size or position has changed.
|
static int |
PLAYER_EVENT_TYPE_START_PLAYING
Indicate the start of the playback
|
static int |
PLAYER_EVENT_TYPE_START_REBUFFERING
Indicate the control is starting buffering
|
static int |
PLAYER_EVENT_TYPE_SWITCH
Indicate a bitrate switch has just occurred
|
static int |
PLAYER_EVENT_TYPE_SWITCH_REQUESTED
Indicate a bitrate switch has been requested
|
static int |
PLAYER_EXTENDED_EVENT_BANDWIDTH_MEASURE
Indicate the control has executed a bandwidth measure
arg1: Current client bandwidth
arg2: Index of the recommended playback bitrate
|
static int |
PLAYER_EXTENDED_EVENT_SEEKING_STARTED
Indicate the beginning of a new seeking operation
|
static int |
PLAYER_EXTENDED_EVENT_SEEKING_SUCCEDEED
Indicate a successful seeking operation
arg1: Seeking position
|
Modifier and Type | Method and Description |
---|---|
boolean |
onPlayerEvent(int iInEventType)
Called to indicate a player event
|
boolean |
onPlayerExtendedEvent(int iInEventType,
int arg1,
int arg2)
Called to indicate a player extended event
|
static final int PLAYER_EVENT_TYPE_POSITION_UPDATE
static final int PLAYER_EVENT_TYPE_FINISHED
static final int PLAYER_EVENT_TYPE_START_PLAYING
static final int PLAYER_EVENT_TYPE_ERROR
static final int PLAYER_EVENT_TYPE_START_REBUFFERING
static final int PLAYER_EVENT_TYPE_END_REBUFFERING
static final int PLAYER_EVENT_TYPE_SWITCH_REQUESTED
static final int PLAYER_EVENT_TYPE_SWITCH
static final int PLAYER_EVENT_TYPE_LOADING
static final int PLAYER_EXTENDED_EVENT_BANDWIDTH_MEASURE
static final int PLAYER_EXTENDED_EVENT_SEEKING_SUCCEDEED
static final int PLAYER_EVENT_TYPE_FULLSCREEN_MODE_CHANGE
static final int PLAYER_EVENT_TYPE_SIZE_CHANGE
static final int PLAYER_EVENT_TYPE_LOAD_REQUESTED
static final int PLAYER_EVENT_TYPE_RESUME_REQUESTED
static final int PLAYER_EVENT_TYPE_PAUSE_REQUESTED
static final int PLAYER_EVENT_APP_SENT_TO_BACKGROUND
static final int PLAYER_EVENT_APP_SENT_TO_FOREGROUND
static final int PLAYER_EXTENDED_EVENT_SEEKING_STARTED
boolean onPlayerEvent(int iInEventType)
iInEventType
- Even typeboolean onPlayerExtendedEvent(int iInEventType, int arg1, int arg2)
iInEventType
- Event Typearg1
- Argumentarg2
- Argument