On Meeting Status Change

Hi
How to get onMeetingStatusChanged status is android app.
i tried to call the funtion. but it is always showing the status is IDLE.

FYI: We are using the SDK in both Android and iOS. in iOS i am getting it right, but always getting the status as idle in Android.

@microbiagro9 ,

this is a callback function, you would want to get the status in the callback method itself.

Hi
We have tried this, we are not able to get it.
On meetingchange status am calling in Join meeting function, but i am getting the status is IDLE always, Where to call the OnMeetingChangedStatus function,

Am not getting that as implement method or call back
Attaching the below information for your reference.

private void joinMeeting(Context context, String JoinUserName, String meetingNumber, String password) {
MeetingService meetingService = ZoomSDK.getInstance().getMeetingService();
JoinMeetingOptions options = new JoinMeetingOptions();
JoinMeetingParams params = new JoinMeetingParams();
params.displayName = JoinUserName;
params.meetingNo = meetingNumber;
params.password = password;
meetingService.joinMeetingWithParams(context, params, options);

}

above is for join meeting

public void onMeetingStatusChanged(MeetingStatus meetingStatus,
int errorCode,
int internalErrorCode) {
Log.d(TAG, String.valueOf(meetingStatus));
System.out.println(“meetingStatus” +meetingStatus);
if (meetingStatus == MeetingStatus.MEETING_STATUS_IDLE) {
// layout_zoom_loading.setVisibility(View.VISIBLE);
} else {
// layout_zoom_loading.setVisibility(View.GONE);
}
if(meetingStatus == MeetingStatus.MEETING_STATUS_FAILED
&& errorCode == MeetingError.MEETING_ERROR_CLIENT_INCOMPATIBLE) {
Toast.makeText(this, “Version of ZoomSDK is too low!”, Toast.LENGTH_LONG).show();
}
}

@microbiagro9 ,

You will need to do 2 more things. Once these are done, you the SDK will call the method whenever there is a change in status.

  1. Register the event listener. this should be done after the SDK has been successfully initialized.
       private void registerMeetingServiceListener() {
        ZoomSDK zoomSDK = ZoomSDK.getInstance();
        MeetingService meetingService = zoomSDK.getMeetingService();
        if(meetingService != null) {
            meetingService.addListener(this);
        }
    }
  1. Implement the MeetingServiceListener interface. Let’s assume that the class you are currently in is Main Activity

public class MainActivity extends AppCompatActivity implements MeetingServiceListener, ZoomSDKInitializeListener

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.