AudioVideoObserver
@objc
public protocol AudioVideoObserver
AudioVideoObserver
handles audio/video session events.
-
Called when the audio session is connecting or reconnecting.
Note: this callback will be called on main thread.
Declaration
Swift
func audioSessionDidStartConnecting(reconnecting: Bool)
Parameters
reconnecting
Whether the session is reconnecting or not.
-
Called when the audio session has started.
Note: this callback will be called on main thread.
Declaration
Swift
func audioSessionDidStart(reconnecting: Bool)
Parameters
reconnecting
Whether the session is reconnecting or not.
-
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 trueNote: this callback will be called on main thread.
Declaration
Swift
func audioSessionDidDrop()
-
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.
Note: this callback will be called on main thread.
Declaration
Swift
func audioSessionDidStopWithStatus(sessionStatus: MeetingSessionStatus)
Parameters
sessionStatus
The reason why the session has stopped.
-
Called when the audio reconnection is canceled.
Note: this callback will be called on main thread.
Declaration
Swift
func audioSessionDidCancelReconnect()
-
Called when the connection health is recovered.
Note: this callback will be called on main thread.
Declaration
Swift
func connectionDidRecover()
-
Called when connection is becoming poor.
Note: this callback will be called on main thread.
Declaration
Swift
func connectionDidBecomePoor()
-
Called when the video session is connecting or reconnecting.
Note: this callback will be called on main thread.
Declaration
Swift
func videoSessionDidStartConnecting()
-
Called when the video session has started.
Note: this callback will be called on main thread.
Declaration
Swift
func videoSessionDidStartWithStatus(sessionStatus: MeetingSessionStatus)
Parameters
sessionStatus
The status of meeting session
-
Called when the video session has stopped from a started state with the reason provided in the status.
Note: this callback will be called on main thread.
Declaration
Swift
func videoSessionDidStopWithStatus(sessionStatus: MeetingSessionStatus)
Parameters
sessionStatus
The reason why the session has stopped.
-
Called on the main thread when video sources become available.
Video sources can be explicitly subscribed to through
updateVideoSourceSubscriptions
. These should be stored and used whenupdateVideoSourceSubscriptions
is called (i.e. you cannot useRemoteVideoSource
objects created manually). SeeupdateVideoSourceSubscriptions
for more information. See note inupdateVideoSourceSubscriptions
documentation for information on subscription behavior ifupdateVideoSourceSubscriptions
is never called.Declaration
Swift
func remoteVideoSourcesDidBecomeAvailable(sources: [RemoteVideoSource])
Parameters
sources
Array of remote video sources that are available
-
Called on the main thread when video sources become unavailable.
Note that these sources do not need to be removed via
updateVideoSourceSubscriptions
, as they will be automatically unsubscribed from.Declaration
Swift
func remoteVideoSourcesDidBecomeUnavailable(sources: [RemoteVideoSource])
Parameters
sources
Array of video sources that are unavailable
-
Called on the main thread when video capacity status is updated.
Declaration
Swift
func cameraSendAvailabilityDidChange(available: Bool)
Parameters
available
True if camera send is available (due to video capacity status), False if not.