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!
Post
Replies
Boosts
Views
Activity
Hi,
I saw a presentation / demonstration of AVCam app being modified to use any external USB camera in this video (https://developer.apple.com/videos/play/wwdc2023/10106/). The presenter mentions that the sample code will be available for download, however I am unable to find the same. Can someone point me to the mentioned sample code?
Thanks!