Hi,
I am trying to use the AVCam sample app code (latest as of 19 Jul 2023 from here - https://developer.apple.com/documentation/avfoundation/capture_setup/avcam_building_a_camera_app)
Test setup:
-
iPad Pro 11" 4 Gen running iPadOS 17 (public beta).
-
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.
I am able to build and run the app on the iPad, however I get the following error when the external camera is selected for video capture.
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)
From the code the error points to "mediaServicesWereReset" error. I am unable to figure out what is the cause of this error.
Can someone help regarding this?
Thanks!