I know that IOS13 can display 2 camera previews simultaneously on iPhone 11 Pro and above. I saw the DoubleTake app where they are showing live preview from all the 4 cameras (three back cameras and one front camera). Any pointer on how this can be achieved?
The above screen shot shows the camera selection part in their app. All the 4 videos are simultaneously showing live. IOS13 supports 2 cameras active at a time on iPhone 11 Pro. How can I display all 4 cameras in my app as seen in this screen?
There is an open API for this. You can do it with
AVCaptureMultiCamSession
, which isa capture session that supports simultaneous capture from multiple inputs of the same media type
.It's a lot of code. For details, pls check out these WWDC 2019 sessions:
Introducing Multi-Camera Capture for iOS
Advances in Camera Capture & Photo Segmentation
And there an excellent sample code project associated with it.