When i turn on my camera the black view appears
even my facecame video is visible to the other participants
and i cant event see any of the other participants video
what could be an reason
public func setUpMobileRtc() {
guard !isInitialized else { return }
let context = MobileRTCSDKInitContext()
context.domain = zoomDomain
context.enableLog = true
context.enableCustomizeMeetingUI = false
MobileRTC.shared().initialize(context)
isInitialized = true
}
public func authenticateAndJoin(
jwtToken: String,
meetingId: String,
displayName: String,
userID: String,
onProcessCompleted: @escapingescaping () → Void
) {
Task {
await requestMediaPermissions()
try await authenticate(jwtToken: jwtToken)
joinWebinar(meetingId: meetingId, displayName: displayName, userID: userID)
onProcessCompleted()
}
}
private func authenticate(jwtToken: String) async throws {
guard !isAuthorized else { return }
guard let authService = MobileRTC.shared().getAuthService() else {
throw ZoomError.authServiceNotFound
}
authService.delegate = self
authService.jwtToken = jwtToken
try await withCheckedThrowingContinuation { continuation in
self.authContinuation = continuation
authService.sdkAuth()
}
}
public func joinWebinar(meetingId: String, displayName: String, userID: String) {
guard let meetingService = MobileRTC.shared().getMeetingService() else { return }
guard let scene = UIApplication.shared.connectedScenes
.compactMap({ $0 as? UIWindowScene })
.first else {
print(“No scene found”)
return
}
MobileRTC.shared().setMobileRTCPresentationScene(scene)
meetingService.delegate = self
let params = MobileRTCMeetingJoinParam()
params.meetingNumber = meetingId
params.userName = displayName
params.password = “Q1LT5w”
params.noAudio = false
params.noVideo = false
let result = meetingService.joinMeeting(with: params)
print(“Join Result:”, result.rawValue)
}
private func requestMediaPermissions() async {
await AVCaptureDevice.requestAccess(for: .video)
await AVCaptureDevice.requestAccess(for: .audio)
}
}