com.neomades.media.PlayerListener |
Listener of a player to get all the events of a player.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | STATE_END_OF_MEDIA | The end of the media has been reached | |||||||||
int | STATE_PAUSED | The player has been paused | |||||||||
int | STATE_PLAYING | The player is playing | |||||||||
int | STATE_PREPARED | The player is prepared to play | |||||||||
int | STATE_RELEASED | The player is destroyed |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
onPlayerError(Player player, int state, Exception error)
Called when an error has been thrown into a player.
| ||||||||||
abstract void |
onPlayerEvent(Player player, int state)
Called when a player has stopped.
|
The end of the media has been reached
The player has been paused
The player is playing
The player is prepared to play
The player is destroyed
Called when an error has been thrown into a player.
player | the player |
---|---|
state | state of the player |
error | the error exception |
Called when a player has stopped.
player | the player |
---|---|
state | state of the player |