Other


Contents

1. A Few Other Listeners

1. A Few Other Listeners

There are a few other listeners that could be very helpful when some events are happening:

1.1 When webinar need register

@Override
public void onWebinarNeedRegister() {
    ...
}

1.2 When meeting fail

public void onMeetingFail(int errorCode, int internalErrorCode) {
    ...
}

1.3 When leaving or ending a Meeting

Use the following code to enable a meeting handler for the leave event. Then do a resource clean.

@Override
public void onMeetingLeaveComplete(long ret /*leave reason*/) {
   ...
//Important: Ensure to destory video units before meeting activity finish.
//Foreach MobileRTCVideoViewManager
//do  
   if(viedeoViewMgr != null) {
      viedeoViewMgr .destory();
   }
//end
   ...
   finish(); //finish your meeting activity
}

1.4 When meetings need passwords or display names

@Override
public void onMeetingNeedPasswordOrDisplayName(boolean needPassword, boolean needDisplayName, InMeetingEventHandler handler) {
    ...
}

1.5 When meeting need close other meeting

@Override
public void onMeetingNeedColseOtherMeeting(InMeetingEventHandler inMeetingEventHandler) {
    ...
}

1.6 When join webinar need username and email

@Override
public void onJoinWebinarNeedUserNameAndEmail(InMeetingEventHandler inMeetingEventHandler) {
    ...
}