Player events are related to the player behaviors (not the video/stream itself).
Event name | Parameters | Description |
---|---|---|
onPlayClicked() | - | Invoked when play button is pressed. |
onPauseClicked() | volume – new video volume | Invoked when pause button is pressed. |
onEnterFullscreenClicked() | - | Invoked when FullScreen button (enter state) is pressed. |
onExitFullscreenClicked() | - | Invoked when FullScreen button (exit state) is pressed. |
onVideoClicked() | - | Invoked when player video screen is pressed. |
onSeekBarChangedByUser(int progress) | progress – current position on the timeline (value 0-10000) | Invoked when timeline pointer is changed. |
onSeekBarSetTime(long streamSeekUnixTime) | streamSeekUnixTime – current position on the stream timeline | Invoked when timeline pointer is reaches final position. |
onFullScreenEnter() | - | Invoked when player enters fullscreen mode. |
onFullScreenExit() | - | Invoked when player exits fullscreen mode. |
onErrorScreenShow(String errorMessage) | errorMessage – error message | Invoked when an error message appears. |
onErrorScreenHide() | - | Invoked when an error message disappears. |
onLoaderShow() | - | Invoked when a video loader appears. |
onLoaderShow() | - | Invoked when a video loader disappears. |