Description
Is it possible to auto end the ongoing zoom meeting after X minutes?
Which Client iOS SDK version?
v5.4.54802.0124
Additional context
I want to auto end the ongoing meeting after provided minutes.
Description
Is it possible to auto end the ongoing zoom meeting after X minutes?
Which Client iOS SDK version?
v5.4.54802.0124
Additional context
I want to auto end the ongoing meeting after provided minutes.
Hey @therapysuccess,
Thanks for using the dev forum! It is nice to see you again
There is not a method to do this directly through the SDK. But you can implement a timer that starts when the meeting starts, then the host calls the leave meeting function when the timer completes.
Something like:
let delayTime = DispatchTime.now() + 60.0
DispatchQueue.main.asyncAfter(deadline: delayTime, execute: {
guard let meetingService = MobileRTC.shared().getMeetingService(),
let localUserInfo = meetingService.userInfo(byID: meetingService.myselfUserID()) else { return }
if localUserInfo.isHost {
meetingService.leaveMeeting(with: .end)
} else {
print(“Only the host can end the meeting.”)
}
})
Thanks!
Michael
Hey @therapysuccess,
Awesome! I am happy to hear Let us know if you have any other questions.
Michael
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.