What are the hardware configurations required for opening front and back cameras simultaneously?

122 views Asked by At

I managed to preview back & front cameras simultaneously, using Camera2 API (multiple-camera-streams-simultaneously)

It works pretty well on OnePlus 8 (pro) device BUT didn't work on others such as Samsung Galaxy A32 and OnePlus 7 (pro); got the error: ERROR_MAX_CAMERAS_IN_USE, while trying to open the second camera.

How can I know which devices can support it ? I understand there is HW criteria for that, but what is it ?

Thanks

1

There are 1 answers

0
Wasim Ansari On

Starting API 30, new methods are added to know availability as well stream configuration for concurrent cameraID that you can use.

https://source.android.com/devices/camera/concurrent-streaming