Listener

interface Listener

The Client.Listener interface defines a set of methods to handle events and callbacks related to the client's connection status and streaming session.

Inheritors

Functions

Link copied to clipboard
abstract fun onConnected()
Called when the client successfully establishes a connection to the Millicast platform.
Link copied to clipboard
abstract fun onConnectionError(status: Int, @NonNull reason: String)
Called when an error occurs during the connection process.
Link copied to clipboard
abstract fun onDisconnected()
Called when the client disconnects from the Millicast platform.
Link copied to clipboard
abstract fun onReleaseRequired()
Event telling that the current instance needs to release any ressources it holds and reset itself.
Link copied to clipboard
abstract fun onSignalingError(@NonNull reason: String)
Called when the Millicast platform sends back an error message in response to a connection request.
Link copied to clipboard
abstract fun onStatsReport(@NonNull report: RtsReport)
Called when the client receives a report containing statistics related to the streaming session.
Link copied to clipboard
abstract fun onViewerCount(count: Int)
Called when the number of viewers in the streaming session changes.