iosiphoneavcapturesessionavcaptureavcaptureoutput

Simultaneous pictures with iPhone 7 Plus cameras


Is there a way to take a picture with the Telephoto lens and the Wideangle lens of the iPhone 7 Plus ?

I explored the different methods, but the best I can come with is to change the camera by removing the input AVCaptureDeviceTypeBuiltInTelephotoCamera and adding the input from AVCaptureDeviceTypeBuiltInWideangleCamera. This takes about 0.5 second however, I would like to capture it simultaneouly. From a hardware point of view, it should be possible since Apple is doing the same when using the AVCaptureDeviceTypeBuiltInDuoCamera.

Does anybody know other methods to capture a photo from both cameras at (almost) the same time?

Thanks!


Solution

  • I wanted to capture from both cameras too, but what I've found is this:

    When you are using the AVCaptureDeviceTypeBuiltInDualCamera that automatically switches between wide and tele, they are synchronized to the same clock. Simultaneous running of the AVCaptureDeviceTypeBuiltInTelephotoCamera and AVCaptureDeviceTypeBuiltInWideAngleCamera cameras is not supported.

    Source - https://forums.developer.apple.com/thread/63347