I am reaching out to request assistance with a challenge we are facing while using the MobileRTC SDK for iOS in our application. After initializing the SDK and successfully authenticating our JWT token, we are able to join a meeting using the following code:
let joinParams = MobileRTCMeetingJoinParam()
joinParams.meetingNumber = model.number
joinParams.userName = model.userName
joinParams.password = model.password
joinParams.onBehalfToken = model.token // JWT token
meetingService.joinMeeting(with: joinParams)
we also tried following code for start meeting, but in this case it ask password in textfield and even we provide that it not host role.
let obj = MobileRTCMeetingStartParam4WithoutLoginUser()
obj.userName = model.userName
obj.meetingNumber = model.number
obj.userType = .apiUser
obj.isAppShare = false
obj.zak = model.token // jwt token
let error: MobileRTCMeetError = meetingService.startMeeting(with: obj)
Above code is asking password before join the call. I have password but there is no property for set it, and I don’t want to insert it because end user don’t know about the password.
However, after joining the meeting, we receive a notification indicating that the host has not yet joined the call. Consequently, the chat feature is disabled because our user is not recognized as the host.
To address this, we are attempting to promote the current user to host status by calling the makeHost method with the current user’s ID. Unfortunately, the isHost method returns false, indicating that the promotion was unsuccessful.
Could you please clarify how we can successfully set the current user as the host? Additionally, would it be more appropriate to use the startMeeting method instead of joinMeeting for this purpose? If so, please advise on how we can obtain the ZAK token required for starting a meeting.
Thank you for your assistance. I look forward to your guidance on this matter.