onStreamStateChanged

abstract fun onStreamStateChanged(state: StreamState)

Called on the main thread when the stream's health changes.

Parameters

state

StreamState.FREEZE_DETECTED means the decoder stopped producing new frames, cleared by StreamState.FREEZE_RESOLVED. StreamState.STUCK means the receive bitrate has been zero for several seconds. StreamState.ACTIVE and StreamState.ENDED follow the server resuming or closing the stream.