StreamListener

interface StreamListener

Listener for the stream events. Implement this interface to receive events from the stream. It is also the gateway to the player and playerView.

Note that the Player has it's own events that can be listened to.

See also

Functions

Link copied to clipboard
abstract fun onStreamError(error: StreamError)

Called when an error occurs during the stream setup.

Link copied to clipboard
abstract fun onStreamReady(player: Player, playerView: PlayerView)

Called when the stream is ready to be played.