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
reconnectingWhether 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
reconnectingWhether 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,
onAudioSessionStartedwill 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
sessionStatusThe 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
sessionStatusThe 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
sessionStatusThe 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 whenupdateVideoSourceSubscriptionsis called (i.e. you cannot useRemoteVideoSourceobjects created manually). SeeupdateVideoSourceSubscriptionsfor more information. See note inupdateVideoSourceSubscriptionsdocumentation for information on subscription behavior ifupdateVideoSourceSubscriptionsis never called.Declaration
Swift
func remoteVideoSourcesDidBecomeAvailable(sources: [RemoteVideoSource])Parameters
sourcesArray 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
sourcesArray of video sources that are unavailable
-
Called on the main thread when video capacity status is updated.
Declaration
Swift
func cameraSendAvailabilityDidChange(available: Bool)Parameters
availableTrue if camera send is available (due to video capacity status), False if not.