Open SergejLogis opened 3 years ago
With iOS 14 one of my devices are like this.
So far in my case I have pinpointed the problem to cameraSource.startCapture(device: cameraDevice, completion:)
The method is called, but the completion never.
Can you try and put an Xcode break or a print statement inside the completion to see if your problem is the same?
The VideoView renderer is a UIView but we haven't tried its integration with SwiftUI yet. We have a task in our backlog to write a sample app with SwiftUI which we plan to address soon.
We will update this ticket when we have more information.
@Hamoonist unfortunately, I don't have iOS 13 device on hands, and it's impossible to test camera on simulator...
@piyushtank Twilio works like charm with SwiftUI. We have zero issues with iOS 14. However, on iOS 13 the camera preview doesn't work so it's pretty much a deal breaker if you must support iOS 13.
So the problem we had with cameraSource.startCapture(device: cameraDevice, completion:)
appeared out of nowhere, and got resolved by itself!
I wanted to share the good news đ
Description
We are using Twilio Video in SwiftUI app. On iOS 14 everything works fine, but on iOS 13 local camera preview stays empty no matter what. There are no errors or warnings in console, both
Camera Source
andCamera Device
are obtained successfully butVideoView
stays empty.Code
Expected Behavior
Camera preview outputs video.
Actual Behavior
Camera preview stays empty.
Reproduces How Often
100% of times, but only on iOS 13
Versions
Video iOS SDK
TwilioVideo 3.7.1
Xcode
Xcode 12.2
iOS Version
iOS 13.7
iOS Device
iPhone 8, iPhone X
Any help would be greatly appreciated đ