onHlsStateChanged

Called when the HLS streaming state changes.

The HlsState object contains the current state and relevant metadata such as the playback URL when streaming is active.

Code Example:


override fun onHlsStateChanged(HlsState: JSONObject) {
    val status = HlsState.optString("status")
    val playbackUrl = HlsState.optString("playbackHlsUrl")
    Log.d("Meeting", "HLS state: $status, URL: $playbackUrl")
}

Parameters

HlsState

a JSONObject containing HLS state information

See also