Start Meeting – Non-login/API User


1. Start Meeting with Meeting Number

2. Start Meeting Status

After getting the Zoom Token and the Zoom Access Token, you can pass these tokens to start meetings with meeting number.

1. Start Meeting with Meeting Number

To start a meeting with meeting number, firstly, you need to retrieve a MobileRTCMeetingService instance from MobileRTC:

MobileRTCMeetingService *ms = [[MobileRTC sharedRTC] getMeetingService];
  if (ms)
#if 0
      //customize meeting title
      [ms customizeMeetingTitle:@"Sample Meeting Title"];

Then retreive the Zoom Token and Zoom Access Token:

//Sample for Start Param interface
MobileRTCMeetingStartParam * param = nil;

//Sample: How to Get Token or ZAK via RestAPI
NSString * token = [self requestTokenOrZAKWithType:MobileRTCSampleTokenType_Token];
NSString * ZAK = [self requestTokenOrZAKWithType:MobileRTCSampleTokenType_ZAK];

After that, simply store these values to MobileRTCMeetingStartParam4WithoutLoginUser object and pass the object to startMeetingWithStartParam function to start a meeting.

MobileRTCMeetingStartParam4WithoutLoginUser * user = [[[MobileRTCMeetingStartParam4WithoutLoginUser alloc]init] autorelease];
user.userType = MobileRTCUserType_APIUser;
user.meetingNumber = kSDKMeetNumber;
user.userName = kSDKUserName;
user.userToken = token;
user.userID = kSDKUserID;
user.isAppShare = appShare;
user.zak = ZAK;
param = user;

MobileRTCMeetError ret = [ms startMeetingWithStartParam:param];
NSLog(@"onMeetNow ret:%d", ret);

2. Start Meeting Status

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

- (void)onMeetingStateChange:(MobileRTCMeetingState)state;
    NSLog(@"onMeetingStateChange:%d", state);