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