CameraX will soon support concurrent camera streams, allowing you to record from two cameras simultaneously at 720p or 1440p resolution. The Camera2 API for concurrent camera streaming was introduced in Android 11, so it’s nice to see support finally extend to CameraX as well!
Google tested CameraX’s Concurrent Camera API on the Pixel 6 Pro, Samsung Galaxy S21, and OnePlus 7 Pro. But there are many more models that support concurrent camera streams.
According to the Google Play Console’s Device Catalog, 179 device models declare android.hardware.camera.concurrent, the feature indicating that the vendor correctly configured the front and back cameras to support concurrent camera streaming.
Overall, there are three options for adding camera functionality to an Android app:
- CameraX (high-level API built on top of Camera2 API)
- Camera2
- Camera (deprecated)