Thanks for your reply.
I tried the initial modification shown in the video to select the default camera as external camera.
if let externalCamera = AVCaptureDevice.default(.external, for: .video, position: .unspecified) {
defaultVideoDevice = externalCamera
print("External camera selected")
}
else if let dualCameraDevice = AVCaptureDevice.default(.builtInDualCamera, for: .video, position: .back) {
defaultVideoDevice = dualCameraDevice
}
Test setup details:
- I am testing on my iPad Pro 11" 4 Gen running iPadOS 17 (public beta).
- I use Xcode 15 beta 4 to use the iPad as the run destination (wireless mode).
- An external USB webcam is connected to the iPad during the test. This camera is working when I test using the FaceTime app.
However, I see the below error on app start.
Capture session runtime error: related decl 'e' for AVError(_nsError: Error Domain=AVFoundationErrorDomain Code=-11819 "Cannot Complete Action" UserInfo={NSLocalizedDescription=Cannot Complete Action, NSLocalizedRecoverySuggestion=Try again later.})
Error Code = AVError(rawValue: -11819)
Did you do any additional modifications in the project for your tests?
Thanks!