StateListener

interface StateListener

Callbacks for events triggered by the underlying Playable.

Functions

Link copied to clipboard
open fun onBuffering(playback: Playback, playWhenReady: Boolean)

Called when buffering status of the playback is changed.

Link copied to clipboard
open fun onEnded(playback: Playback)

Called when the Video finishes its playback

Link copied to clipboard
open fun onError(playback: Playback, exception: Exception)
Link copied to clipboard
open fun onPaused(playback: Playback)

Called when the Video is paused

Link copied to clipboard
open fun onPlaying(playback: Playback)

Called when the Video starts playing

Link copied to clipboard
open fun onRendered(playback: Playback)

Called when a Video is rendered on the Surface for the first time

Link copied to clipboard
open fun onVideoSizeChanged(    playback: Playback,     width: Int,     height: Int,     unAppliedRotationDegrees: Int,     pixelWidthHeightRatio: Float)