EventListener

interface EventListener

The interface for event listeners that can be added to THEOlivePlayer.

Functions

Link copied to clipboard
open fun onChannelLoaded(channelId: String)

This indicates the channel has successfully been loaded.

Link copied to clipboard
open fun onChannelLoadStart(channelId: String)

This indicates the loading of the channel has started.

Link copied to clipboard
open fun onChannelOffline(channelId: String)

This indicates the channel is currently offline.

Link copied to clipboard
open fun onError(message: String)

This is called when the player has encountered a non-recoverable error.

Link copied to clipboard

This callback indicates that the player notices its channel is not in a healthy state. When a fallback channel is configured, the player will automatically fallback to that channel. Expert users can use this callback to have full control over how to fallback to an alternative.

Link copied to clipboard
open fun onPause()

This is called when the player is paused.

Link copied to clipboard
open fun onPlay()

This is called when the player is no longer paused.

Link copied to clipboard
open fun onPlaying()

This is called when the player is not paused and starts progressing playback.

Link copied to clipboard
open fun onReset()

This indicated the player has been reset.

Link copied to clipboard
open fun onVolumeChange()

This is called when either the volume or the muted property of the player has changed.

Link copied to clipboard
open fun onWaiting()

This is called when the player is not paused but stops progressing due to running out of buffer.