Native SDKs
Introduction
Developer Accounts
Access Credentials
User Login Types
Overview
Techniques
Mastering Zoom SDK
1. SDK Initialization
2. Start / Join Meeting
2.1 Non-login / API User
2.2 Email Login User
2.3 SSO Login User
2.4 Join Meeting Only
3. In-Meeting Function
4. Other Features
SDK Reference
Resource
Get Help
Additional Tips
Hybrid Frameworks Support

Join Meeting Only


Contents

	1. Join Meeting with Meeting Number

	2. Join Meeting with Vanity ID
	
	3. Join Meeting Status

The following contents apply to all user types.

1. Join Meeting with Meeting Number

Want to join a meeting? The step is simple and easy. Firstly, you need to retrieve a MeetingService instance from ZoomSDK:

int ret = -1;
MeetingService meetingService = mZoomSDK.getMeetingService();
if(meetingService == null) {
    return ret;
}

Then configure the meeting options JoinMeetingOptions:

JoinMeetingOptions opts = ZoomMeetingUISettingHelper.getJoinMeetingOptions();

// some available options
opts.no_driving_mode = true;
opts.no_invite = true;
opts.no_meeting_end_message = true;
opts.no_titlebar = true;
opts.no_bottom_toolbar = true;
opts.no_dial_in_via_phone = true;
opts.no_dial_out_to_phone = true;
opts.no_disconnect_audio = true;
opts.no_share = true;
opts.invite_options = InviteOptions.INVITE_VIA_EMAIL + InviteOptions.INVITE_VIA_SMS;
opts.no_audio = true;
opts.no_video = true;
opts.meeting_views_options = MeetingViewsOptions.NO_BUTTON_SHARE;
opts.no_meeting_error_message = true;
opts.participant_id = "participant id";


When the options are set, then we need to prepare the meeting parameters that need to pass to the join meeting function:

JoinMeetingParams params = new JoinMeetingParams();

params.displayName = DISPLAY_NAME;
params.meetingNo = meetingNo;
params.password = meetingPassword;

Now both options and parameters are ready, simply pass them to joinMeetingWithParams to join the meeting:

// with options
int response = meetingService.joinMeetingWithParams(this, params, opts);

// with default options
int response = meetingService.joinMeetingWithParams(this, params);

2. Join Meeting with Vanity ID

Vanity ID

Vanity ID is a special and personalized ID that uniquely belongs to a user.

If you would like to join a meeting with vanity ID instead of meeting number, the process is exactly the same as joining a meeting with meeting number. Just storing vanity id in JoinMeetingParams instead of storing meeting number like this:

int ret = -1;
MeetingService meetingService = mZoomSDK.getMeetingService();
if(meetingService == null) {
    return ret;
}

JoinMeetingOptions opts =ZoomMeetingUISettingHelper.getJoinMeetingOptions();
JoinMeetingParams params = new JoinMeetingParams();
params.displayName = DISPLAY_NAME;
params.vanityID = vanityId;
params.password = meetingPassword;
return meetingService.joinMeetingWithParams(context, params,opts);

3. Join Meeting Status

To know whether the join meeting action is a success or not, or to get the error message, you need to implement the onMeetingStatusChange method:

@Override
public void onMeetingStatusChanged(MeetingStatus meetingStatus, int errorCode,
                   int internalErrorCode) {
  Log.i(TAG, "onMeetingStatusChanged, meetingStatus=" + meetingStatus + ", errorCode=" + errorCode
      + ", internalErrorCode=" + internalErrorCode);

  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();
  }
}