Ios 斯威夫特和ZoomSDK,参加一个会议
我从他们的GitHub获得了最新的ZoomSDK,但它仍然非常过时,而且他们的文档甚至与他们的SDK不匹配。这个例子也是有缺陷的,有一大堆几乎不能正常工作的额外代码 是否有人在未登录的情况下成功使用ZoomSDK加入会议 以下是我到目前为止的情况:Ios 斯威夫特和ZoomSDK,参加一个会议,ios,swift,xcode,zoom-sdk,Ios,Swift,Xcode,Zoom Sdk,我从他们的GitHub获得了最新的ZoomSDK,但它仍然非常过时,而且他们的文档甚至与他们的SDK不匹配。这个例子也是有缺陷的,有一大堆几乎不能正常工作的额外代码 是否有人在未登录的情况下成功使用ZoomSDK加入会议 以下是我到目前为止的情况: let zoom: MobileRTC = MobileRTC.shared() func application(_ application: UIApplication, didFinishLaunchingWithOptions launchO
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)
}
所有值都正常,我甚至得到了成功的身份验证响应。在尝试启动会议时,它不会打开任何缩放UI或执行任何其他操作
再次更新,以下是加入
会议
同样的碰撞。我刚读到他们不支持Xcode 11,我不知道这是否是你的情况。我只是问他们打算什么时候支持它。我还打开了一张支持票,但他们没有回应就关闭了。他们似乎是一个糟糕的公司。但不管怎样,崩溃都是由库中不推荐的UIAlertView代码引起的。至少我知道这么多,所以在他们更新之前我们无能为力。
let service = MobileRTC.shared().getMeetingService()
if service != nil {
service?.delegate = self
let user = MobileRTCMeetingJoinParam()
user.meetingNumber = meetingID
user.userName = userName
user.zak = "---Your Access Token---"
let response = service?.joinMeeting(with: user)
if let response = response {
print("onJoinMeeting, response: \(response)")
}
}