Callback Delegate
#
Listening to the meet eventsIn order to listen to the meet events you need to set delegate to the CallManagerDelegate sdk using the below method
info
AudioLevel ranges from 0 to 10, 0 being very low sound and 10 being too loud.
#
Handling mute eventsWhenever a meet user mute/unmute their video or audio, the below delegate will be triggered.
muteEvent
value will be anyone of the values of annotation class MuteEvent
.
muteEvent Value | Meet event |
---|---|
MuteEvent.ACTION_REMOTE_VIDEO_MUTE | when the remote user muted his video |
MuteEvent.ACTION_REMOTE_VIDEO_UN_MUTE | when the remote user unmuted his video |
MuteEvent.ACTION_REMOTE_AUDIO_MUTE | when the remote user muted his audio |
MuteEvent.ACTION_REMOTE_AUDIO_UN_MUTE | when the remote user unmuted his video |
MuteEvent.ACTION_LOCAL_AUDIO_MUTE | when the local user muted his audio |
MuteEvent.ACTION_LOCAL_AUDIO_UN_MUTE | when the local user unmuted his video |
#
Handling meet statusWhenever call status changed during meet, the below delegate will be triggered.
callStatus
value will be anyone of the values of annotation class CallStatus
.
callStatus Value | Meet event |
---|---|
CallStatus.CONNECTING | The current meet is in connecting state |
CallStatus.ATTENDED | the user attended meet and UI can be presented with the users in the meet |
CallStatus.CONNECTED | the meet is successfully connected and audio/video tracks transmission is about to start |
CallStatus.DISCONNECTED | the meet is disconnected and meet UI can be closed |
CallStatus.RECONNECTING | the meet is in reconnecting state |
CallStatus.RECONNECTED | the meet is connected back after a reconnecting state |
CallStatus.ON_HOLD | the remote user has put the meet on hold, it will happedn when the remote user attended gsm call |
CallStatus.ON_RESUME | the remote user has resumed the meet after a on hold, it will happen when the remote user disconnected gsm call |
CallStatus.USER_JOINED | User joined the meet |
CallStatus.USER_LEFT | User left the meet |
#
Handling meet actionWhenever a meet action is received, the below delegate will be triggered,
callAction
value will be anyone of the values of annotation class CallAction
.
callAction Value | Meet event |
---|---|
CallAction.ACTION_LOCAL_HANGUP | whenever you disconnect the meet, the action will be received |
CallAction.ACTION_REMOTE_VIDEO_ADDED | When the remote user video track is received, this action will be received |
#
Handling the video track eventsWhen the remote user video track is received, this action will be received: CallAction.ACTION_REMOTE_VIDEO_ADDED. When this action is triggered, request SDK to fetch the track of the user