Support external cameras in your iPadOS app

RSS for tag

Discuss the WWDC23 Session Support external cameras in your iPadOS app

Posts under wwdc2023-10106 tag

4 Posts
Sort by:

Post

Replies

Boosts

Views

Activity

External Camera Not Recognized
Configuration: iPad Pro (10.5-inch) iPadOS 17 beta 4 USB USV Camera Nexigo N940P 2K Apple Lightning to USB 3 Camera Adapter Attaching the adapter to the iPad caused it to update driver software - so far ok Next attached USB Camera to adapter and iPad complained "Not Enough Power ...". Attached power to lighting port of adapter. Above warning cleared. FaceTime didn't recognize the External Camera. I went through the usual unplug routine with no luck. Xcode sees the iPad so I executed the Objective-C version of AVCam from the presentation and added breakpoints at "AVCaptureDeviceDiscoverySession *externalVideoDeviceDiscoverySession = [AVCaptureDeviceDiscoverySession discoverySessionWithDeviceTypes:@[AVCaptureDeviceTypeExternal] mediaType:AVMediaTypeVideo position:AVCaptureDevicePositionUnspecified];" The externalVideoDeviceDiscoverySession shows no attached camera. Does anyone have a suggestion for debugging this? Or share your working setup? Thanks!
1
0
866
Aug ’23
Unable to stream from DJI Action Cam 3
I was hopeful that I would be able to record video from an external action camera such as the DJI Action Cam 3. The DJI action cam has a webcam mode that can be enabled as soon as one plugs it to a device, such as a macbook or an iPad. On the Macbook, the DJI shows up as an external camera for use in facetime or quicktime. But when I plug it into the iPad and use the AVCam sample from here, I notice that the camera preview comes up when the AVCam app is in photo mode but as soon as I switch the video mode, the preview layer hangs. No error message or AVCaptureSession errors that I could see. The same code works when using the Apple studio as an external camera. Curious if anyone has had any luck figuring this out? So near yet so far.
2
0
838
Sep ’23
Testing "AVCam: Building a Camera App (Beta)" with external UVC camera
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!
1
0
925
Sep ’23