AudioVideoObserver

AudioVideoObserver handles audio / video session events.

Note: all callbacks will be called on main thread.

Functions

Link copied to clipboard

Called when audio session cancelled reconnecting.

Link copied to clipboard
abstract fun onAudioSessionDropped()

Called when audio session got dropped due to poor network conditions. There will be an automatic attempt of reconnecting it. If the reconnection is successful, onAudioSessionStarted will be called with value of reconnecting as true

Link copied to clipboard
abstract fun onAudioSessionStarted(reconnecting: Boolean)

Called when the audio session has started.

Link copied to clipboard
abstract fun onAudioSessionStartedConnecting(reconnecting: Boolean)

Called when the audio session is connecting or reconnecting.

Link copied to clipboard
abstract fun onAudioSessionStopped(sessionStatus: MeetingSessionStatus)

Called when the audio session has stopped with the reason provided in the status. This callback implies that audio client has stopped permanently for this session and there will be no attempt of reconnecting it.

Link copied to clipboard
abstract fun onCameraSendAvailabilityUpdated(available: Boolean)

Called when video capacity status is updated.

Link copied to clipboard
abstract fun onConnectionBecamePoor()

Called when connection became poor.

Link copied to clipboard
abstract fun onConnectionRecovered()

Called when the connection health is recovered.

Link copied to clipboard

Called when remote video source(s) is/are now available.

Link copied to clipboard

Called when remote video source(s) is/are no longer available.

Link copied to clipboard
abstract fun onVideoSessionStarted(sessionStatus: MeetingSessionStatus)

Called when the video session has started. Sometimes there is a non fatal error such as trying to send local video when the capacity was already reached. However, user can still receive remote video in the existing video session.

Link copied to clipboard

Called when the video session is connecting or reconnecting.

Link copied to clipboard
abstract fun onVideoSessionStopped(sessionStatus: MeetingSessionStatus)

Called when the video session has stopped from a started state with the reason provided in the status.