2

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?

camera selection in DoubleTake app

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?

zolio
  • 2,439
  • 4
  • 22
  • 34

1 Answers1

1

There is an open API for this. You can do it with AVCaptureMultiCamSession, which is a 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:

And there an excellent sample code project associated with it.

wzso
  • 3,482
  • 5
  • 27
  • 48
  • Thanks. I have seen those presentations and sample code. They provide solutions to capture and display max 2 cameras at a time. I am looking for a solution to show all the 4 cameras not-so-good-guality in one screen for user to pick 2 out of the 4 cameras. This is done in the DoubleTake app. – zolio Feb 01 '21 at 09:20