This question already has an answer here:
-
Using both front and back cameras simultaneously android
3 answers
For some reason, I need to open front and back cameras at the same time and I tried the new Camera2 API and get ERROR_MAX_CAMERAS_IN_USE error when I tried to open the second Camera on my Nexus 4. And the document shows it may depend on the devices.
So are there any devices can reach this by the public API? Or can any method like OpenCV can do it?
The Samsung Galaxy S4 and Samsung Galaxy S5 are two devices which can use a front and a rear camera simultaneously
I'm not sure about public apis, but Samsung offers Samsung specific SDKs you may want to check there on Samsung Developers
I know this is way late but here are two post I made on this to help anyone who runs into this:
https://stackoverflow.com/a/28811277/1138878
https://stackoverflow.com/a/43445052/1138878
Short answer: it's possible but depends on hardware/chipset (Snapdragon 801 and higher level hardware).