Need to know when the host leave the meeting on Android SDK

#1

Hi Zoom Team,

There is a requirement on our end that when the host ended the meeting we should get a notification from Android SDK. Currently it is not happening properly. We do get the call back but it does say who. Whether it is user ended or the host ended the meeting. On iOS we do get this perfectly but on Android we could not determine who ended the meeting.

Please guide us to overcome this issue.

Regards
Tamim

#2

Hi Tamim,
Thanks for the post. Could you provide any code snippets for the parts that are not working properly?

Thanks!

#3

Requirement 1: Only for Android
Differentiate who has left the meeting (provider or user)
Differentiate who has ended the meeting (provider or user)

Tried InMeetingService but couldn’t get required information. Achieved the same with “MobileRTCMeetingServiceDelegate” in iOS,

private void registerMeetingServiceListener() {
        if (zoomSDK.isInitialized()) {
            ZoomSDK zoomSDK = ZoomSDK.getInstance();
            InMeetingService inMeeting = zoomSDK.getInMeetingService();
            inMeeting.addListener(this);
        }
    }   

Below are interface implementation,

@Override
    public void onMeetingReady() {
        LOG.b("onMeetingReady");
    }

    @Override
    public void onMeetingNeedWaitHost() {
        LOG.b("");
    }

    @Override
    public void onMeetingReadyToJoin() {
        LOG.b("");
    }

    @Override
    public void onMeetingNeedPasswordOrDisplayName(boolean b, boolean b1, InMeetingEventHandler inMeetingEventHandler) {
        LOG.b("");
    }

    @Override
    public void onWebinarNeedRegister() {
        LOG.b("");
    }

    @Override
    public void onJoinWebinarNeedUserNameAndEmail(InMeetingEventHandler inMeetingEventHandler) {

    }

    @Override
    public void onMeetingNeedColseOtherMeeting(InMeetingEventHandler inMeetingEventHandler) {

    }

    @Override
    public void onMeetingFail(int i, int i1) {

    }

    @Override
    public void onMeetingLeaveComplete(long l) {

    }

    @Override
    public void onMeetingUserJoin(long l) {

    }

    @Override
    public void onMeetingUserLeave(long l) {

    }

    @Override
    public void onMeetingUserUpdated(long l) {

    }

    @Override
    public void onMeetingHostChanged(long l) {

    }

    @Override
    public void onMeetingCoHostChanged(long l) {

    }

    @Override
    public void onSpotlightVideoChanged(boolean b) {

    }

    @Override
    public void onUserVideoStatusChanged(long l) {

    }

    @Override
    public void onMicrophoneStatusError(InMeetingAudioController.MobileRTCMicrophoneError mobileRTCMicrophoneError) {

    }

    @Override
    public void onUserAudioStatusChanged(long l) {

    }

    @Override
    public void onUserAudioTypeChanged(long l) {

    }

    @Override
    public void onMyAudioSourceTypeChanged(int i) {

    }

    @Override
    public void onLowOrRaiseHandStatusChanged(long l, boolean b) {

    }

    @Override
    public void onMeetingSecureKeyNotification(byte[] bytes) {

    }

    @Override
    public void onChatMessageReceived(InMeetingChatMessage inMeetingChatMessage) {

    }

Requirement 2: For iOS and Android

Upon ending the meeting, an alert is shown which is auto dismissed after few seconds

  • Customize the alert message
  • Shouldn’t be auto dismissed. Need callback on clicking “Ok” in Alert.
#4

Hi @Carson_Chen can you please take a look at this code and let us know how to distinguish when the host end the meeting?

#5

Hi Tamim,

Thanks for the detail. We will take a look and get back to you in shortly.

Thanks!

#6

Do we have any update on this? Please let us know.

#7

Hi Tamim,
Thanks for the detail. If you would like to know the moment when the host ends the meeting, you can implement the onMeetingLeaveComplete method(https://zoom.github.io/zoom-sdk-android/us/zoom/sdk/InMeetingServiceListener.html#onMeetingLeaveComplete-long-). The method has a long ret parameter, which belongs to the MeetingEndReason(https://zoom.github.io/zoom-sdk-android/us/zoom/sdk/MeetingEndReason.html) class. The MeetingEndReason class has a END_BY_HOST statue, which is the one that you are looking for.

@Override
public void onMeetingUserJoin(long ret) {

if (ret == MeetingEndReason.END_BY_HOST) {
// Do something
}
}

Hope this helps. Thanks!

#8

Hi @Carson_Chen Thanks for your help on the call back.

Can you please let us know how to customize the alert for the “Video ended” message. We want the user to go back to the home screen once they click on “OK” button of the video ended popup message

Would highly appreciate your quick response on this.

#9

Hi Tamim,
Do you mean this message?

Thanks!

#10

Yes @Carson_Chen, thats is correct. Please let us know how to customize the alert or let us know how to override the event handler for the OK button.

#11

Hi,
If you want to customize the alert message, you can do something like the following, take our demo app as an example

  1. Navigate to the res>values>strings.xml
  2. Inside the <resources> tag, add the following line:
    <string name="zm_msg_meeting_end">Something you want to show</string>

This will change the alert message. If you want to get the event handler for this OK button, we don’t have such interface for this.

Thanks!