com.akamai.media.IPlayerEventsListener |
Player EventsListener
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | PLAYER_EVENT_TYPE_END_REBUFFERING | Indicate the last rebuffering event has ended | |||||||||
int | PLAYER_EVENT_TYPE_ERROR | Indicate an error has occurred | |||||||||
int | PLAYER_EVENT_TYPE_FINISHED | Indicate the end of the playback | |||||||||
int | PLAYER_EVENT_TYPE_FULLSCREEN_MODE_CHANGE | Indicate a fullscreen mode being selected | |||||||||
int | PLAYER_EVENT_TYPE_LOADING | Indicate the control is loading a media resource | |||||||||
int | PLAYER_EVENT_TYPE_LOAD_REQUESTED | There is a request for loading a new video. | |||||||||
int | PLAYER_EVENT_TYPE_PAUSE_REQUESTED | Pause method called | |||||||||
int | PLAYER_EVENT_TYPE_POSITION_UPDATE | Indicate a time position change. | |||||||||
int | PLAYER_EVENT_TYPE_RESUME_REQUESTED | Resume method called | |||||||||
int | PLAYER_EVENT_TYPE_SIZE_CHANGE | Video size or position has changed. | |||||||||
int | PLAYER_EVENT_TYPE_START_PLAYING | Indicate the start of the playback | |||||||||
int | PLAYER_EVENT_TYPE_START_REBUFFERING | Indicate the control is starting buffering | |||||||||
int | PLAYER_EVENT_TYPE_SWITCH | Indicate a bitrate switch has just occurred | |||||||||
int | PLAYER_EVENT_TYPE_SWITCH_REQUESTED | Indicate a bitrate switch has been requested | |||||||||
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 | |||||||||
int | PLAYER_EXTENDED_EVENT_SEEKING_SUCCEDEED | Indicate a successful seeking operation arg1: Seeking position |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Called to indicate a player event
| |||||||||||
Called to indicate a player extended event
|
Indicate the last rebuffering event has ended
Indicate an error has occurred
Indicate the end of the playback
Indicate a fullscreen mode being selected
Indicate the control is loading a media resource
There is a request for loading a new video. A plugin can pause the load (returning false in onPlayerEvent) for doing things (use case: implementing ads plugins
Pause method called
Indicate a time position change. Used to track the progress of the video
Resume method called
Video size or position has changed. This event is fired whenever the position or the size of the video control changes. For example, when there is a change in the screen orientation
Indicate the start of the playback
Indicate the control is starting buffering
Indicate a bitrate switch has just occurred
Indicate a bitrate switch has been requested
Indicate the control has executed a bandwidth measure arg1: Current client bandwidth arg2: Index of the recommended playback bitrate
Indicate a successful seeking operation arg1: Seeking position
Called to indicate a player event
iInEventType | Even type |
---|
Called to indicate a player extended event
iInEventType | Event Type |
---|---|
arg1 | Argument |
arg2 | Argument |