Native SDKs
Preface
Overview
Build your first Zoom app
Techniques
Mastering Zoom SDK
1. SDK Initialization
2. Start / Join Meeting
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

Start Meeting – Non-login/API User


Contents

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"];
#endif
  }

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);
return;

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