Listener

interface Listener

Listener for player events

Functions

Link copied to clipboard
open fun onEnd()

The playback as reached the ended of the video

Link copied to clipboard
open fun onError(error: Exception)

An error occurred

Link copied to clipboard
open fun onFirstPlay()

The video started to play for the first time

Link copied to clipboard
open fun onPause()

The video has been paused

Link copied to clipboard
open fun onPlay()

The video started to play (for the first time or after having been paused)

Link copied to clipboard
open fun onReady()

The video is ready to play

Link copied to clipboard
open fun onSeek()

The player is seeking

Link copied to clipboard
open fun onVideoSizeChanged(resolution: Size)

Called when the video resolution has changed