Accès Camera wide-angle

hello,


Can we access to the wide-angle camera of iPhone 11pro in our app ?
I Have develop an app which can stream from back camera, I would like to use the wide-angle.

thank you for your answer. 🙂

Accepted Reply

Yes, (note that I am assuming by wide angle camera, you are actually referring to the ultra-wide angle camera, since you mentioned the iPhone 11 pro).


To access the ultra-wide angle camera you would configure an AVCaptureSession, and specify it's input as:


AVCaptureDevice.default(.builtInUltraWideCamera, for: .video, position: .back)


For more info on configuring an AVCaptureSession, see https://developer.apple.com/documentation/avfoundation/cameras_and_media_capture/avcam_building_a_camera_app

Replies

Yes, (note that I am assuming by wide angle camera, you are actually referring to the ultra-wide angle camera, since you mentioned the iPhone 11 pro).


To access the ultra-wide angle camera you would configure an AVCaptureSession, and specify it's input as:


AVCaptureDevice.default(.builtInUltraWideCamera, for: .video, position: .back)


For more info on configuring an AVCaptureSession, see https://developer.apple.com/documentation/avfoundation/cameras_and_media_capture/avcam_building_a_camera_app