【发布时间】:2020-05-01 22:03:38
【问题描述】:
我从他们的 GitHub 获得了最新的 ZoomSDK,但它仍然非常过时,他们的文档甚至与他们的 SDK 不匹配。这个例子也有问题,并且有一大堆额外的代码几乎不能正常工作。
有没有人成功使用 ZoomSDK无需登录即可加入会议?
这是我目前所拥有的:
let zoom: MobileRTC = MobileRTC.shared()
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
let context = MobileRTCSDKInitContext.init()
context.appGroupId = AppConfig.Constants.AppTitle
context.domain = AppConfig.Constants.WebDomain
context.enableLog = true
zoom.initialize(context)
let auth: MobileRTCAuthService = zoom.getAuthService()!
auth.clientKey = AppConfig.Constants.AppKey
auth.clientSecret = AppConfig.Constants.AppSecret
auth.delegate = self
auth.sdkAuth()
return true
}
public func startMeeting(meetingId: String) {
let user: MobileRTCMeetingStartParam4WithoutLoginUser = MobileRTCMeetingStartParam4WithoutLoginUser.init()
user.userType = MobileRTCUserType_APIUser
user.meetingNumber = meetingId
user.userID = AppConfig.UserHash.UID
user.isAppShare = false
guard let meetingService = zoom.getMeetingService() else { return }
meetingService.customizeMeetingTitle(AppConfig.Constants.AppTitle)
meetingService.delegate = self
window = UIApplication.shared.windows.count != 0 ? UIApplication.shared.windows[0] : nil
// THIS ACTUALLY CRASHES
meetingService.joinMeeting(with: [
kMeetingParam_Username: user.userID,
kMeetingParam_MeetingNumber: user.meetingNumber! as String,
kMeetingParam_MeetingPassword: ""
])
// Have also tried, does not crash though:
//let options = MobileRTCMeetingStartParam.init()
//options.meetingNumber = meetingId
//options.participantID = AppConfig.UserHash.UID
//meetingService.startMeeting(with: param)
}
所有值都正常,我什至得到了成功的 Auth 响应。它只是在尝试开始会议时不会打开任何 Zoom UI 或执行任何其他操作。
【问题讨论】:
-
这里同样的崩溃。我刚刚读到他们不支持 Xcode 11,我不知道这是不是你的情况。我只是问他们打算什么时候支持它。 devforum.zoom.us/t/…
-
我也开了一张支持票,但他们没有回应就关闭了它。他们看起来就像一个糟糕的公司。但无论哪种方式,崩溃都是由其库中已弃用的 UIAlertView 代码引起的。至少我知道这么多,所以在他们更新之前,我们无能为力。