Description
We’d like to determine when and how a user leaves a meeting by either
- The user clicking the red “Leave” button in the meeting
- The host ending the meeting
- Programmatically leaving the meeting via
meetingService.leaveCurrentMeeting()
We’ve implemented two different listeners in an attempt to capture these three events, namely the MeetingServiceListener
and the InMeetingServiceListener
, however these callbacks have produced much confusion.
Questions:
-
Is there a listener to listen for click events on the red, in meeting “Leave” button?
-
Consider the following log output:
Meeting status: MEETING_STATUS_CONNECTING, error: 0
Meeting status: MEETING_STATUS_IN_WAITING_ROOM, error: 0
Meeting status: MEETING_STATUS_RECONNECTING, error: 0
onMeetingLeaveComplete 0
Meeting status: MEETING_STATUS_IDLE, error: 0
Meeting status: MEETING_STATUS_CONNECTING, error: 0
onMeetingUserJoin [12345678, 12345679]
onUserVideoStatusChanged 12345678
onUserVideoStatusChanged 12345678
onUserVideoStatusChanged 12345679
onUserVideoStatusChanged 12345679
Meeting status: MEETING_STATUS_INMEETING, error: 0
Meeting status: MEETING_STATUS_DISCONNECTING, error: 0
onMeetingLeaveComplete 0
Meeting status: MEETING_STATUS_IDLEIn this scenario, a user was in a waiting room, waiting to be admitted. Once the host admitted the user, the first
onMeetingLeaveComplete
callback was called. Why does it appear that the user leaves the meeting whenever the host admits a user? Is this a bug, or is this intentional? -
Finally, exiting the meeting via the back button (after overriding the default behavior, see back-button-behavior-when-in-a-meeting) seems to require that a
leaveCurrentMeeting()
function be invoked. How can we differentiate between leaving a meeting via that function and the other ways described above?
Which version?
SDK version v5.0.24433.0616
Smartphone (please complete the following information):
- Device: Pixel Emulator
- OS: Android
- Version: API 29