Start the meeting

Description
I have created meeting using Api,i want to host the meeting
but when i call startmeeting() it is getting joined…not host.
it shows the window…waiting for host to start the meeting
Which version?

4.6.15805.0403

Screenshots
If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

  • Device: Ipad 6th genration
  • OS: Ios 12.1

Additional context

func startMeeting(name: String = "ZoomAPI.defaultName", number: Int = -1, password: String = "" ) {
   guard isAPIAuthenticated || isUserAuthenticated, let meetingService = MobileRTC.shared().getMeetingService() else { return }
   
    var paramDict: [String : Any] = [kMeetingParam_Username : name]
    
   if isAPIAuthenticated && !isUserAuthenticated
   {
  
     paramDict[kMeetingParam_UserID] = UserDefaults.standard.string(forKey: "Id")as! String
     paramDict[kMeetingParam_UserToken] = UserDefaults.standard.string(forKey: "AccessToken")as! String
   }
   
   if number != -1
   {
   
   paramDict[kMeetingParam_MeetingNumber] =  "\(number)"
   }

    let r = MobileRTCUserType_APIUser
    paramDict[kMeetingParam_UserType] = NSNumber(value: r.rawValue)

    
    let returnValue = meetingService.startMeeting(with: paramDict)
   
   guard returnValue == MobileRTCMeetError_Success else {
     print("Zoom: Start meeting task failed, error code: \(returnValue.rawValue)")
     return
   }
  
   print("Zoom: Start meeting task completed.")
 }

I have called above function to host the meeting

Hi aparab,

Thanks for the post. If the meeting does not belong to the user that owns the zoom token and zoom access token(Zak), starting a meeting will behave the same as joining a meeting.

Hope this helps. Thanks!

Does the Api user requires the zoom token and zoom access token(Zak)??

Hi aparab,

If you would like the API user to host the meeting(to be the meeting host), yes, it requires the zoom token and zoom access token(Zak), otherwise we do not know whether the user is the host since it is not logged-in.

Hope this helps. Thanks!