PlaybackGlue.PlayerCallback

abstract class PlaybackGlue.PlayerCallback


Interface to allow clients to take action once the video is ready to play and start stop.

Summary

Public constructors

Public functions

Unit

Event of the current media is finished.

Unit

Event for Play/Pause state change.

Unit

Event for isPrepared changed.

Public constructors

PlayerCallback

Added in 1.1.0
PlayerCallback()

Public functions

onPlayCompleted

Added in 1.1.0
fun onPlayCompleted(glue: PlaybackGlue): Unit

Event of the current media is finished.

Parameters
glue: PlaybackGlue

The PlaybackGlue that has finished current media playing.

onPlayStateChanged

Added in 1.1.0
fun onPlayStateChanged(glue: PlaybackGlue): Unit

Event for Play/Pause state change. See isPlaying}.

Parameters
glue: PlaybackGlue

The PlaybackGlue that has changed playing or pausing state.

onPreparedStateChanged

Added in 1.1.0
fun onPreparedStateChanged(glue: PlaybackGlue): Unit

Event for isPrepared changed.

Parameters
glue: PlaybackGlue

The PlaybackGlue that has changed isPrepared.