Concurrent cameras with lens facing same direction

83 views
Skip to first unread message

Anton Ivanov

unread,
Jan 15, 2026, 6:52:16 AMJan 15
to Android CameraX Discussion Group
Hey,
Currently it seems that CameraX restricts using concurrent cameras if both have same lensFacing. Could it be loosened by removing this condition? Some devices have IR cameras on board that face the same directions as RGB cameras and this is very inconvenient as it's impossible to run CameraX on those.

Thanks.

Scott Nien

unread,
Jan 15, 2026, 10:32:41 AMJan 15
to Anton Ivanov, Android CameraX Discussion Group
Hi 
To clarify first, there are two similar concepts of multi-cameras in Android camera framework.  
1) Multi-camera API which is used for accessing physical cameras (Telephotos, ultrawide, wide , others) in a logical camera. Most recent premium devices support multi-cameras. Usually there are two logical camera, one for the back lensfacing, another for front lensfacing.
2) Concurrent cameras API which is used for opening front and back cameras concurrently. 

Do you think the restriction applies to the Multi-camera API or the Concurrent cameras API?  Most devices that support concurrent cameras only support one back camera and one front camera to be opened at the same time. 

Scott

   

CONFIDENTIAL

This  e-mail  and  any  attachments  are  confidential  and  intended  solely  for  the  addressee  and  may  also  be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. Revolut does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by Revolut for operational or business reasons. Any  opinion  or  other  information  in  this  e-mail  or  its  attachments  that  does  not  relate  to  the  business  of Revolut is personal to the sender and is not given or endorsed by Revolut. Registered  Office: 30 South Colonnade, London E14 5HX, United Kingdom. Main Office: 30 South Colonnade, London E14 5HX, United  Kingdom. Revolut  Ltd  is  authorised  and regulated by the Financial Conduct Authority under the Electronic Money Regulations 2011, Firm Reference 900562.

--
You received this message because you are subscribed to the Google Groups "Android CameraX Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camerax-develop...@android.com.
To view this discussion visit https://groups.google.com/a/android.com/d/msgid/camerax-developers/3d6a280b-0659-40e8-95fc-1ff5334bc468n%40android.com.

Anton Ivanov

unread,
Jan 15, 2026, 10:39:20 AMJan 15
to Android CameraX Discussion Group, scot...@google.com, Android CameraX Discussion Group, Anton Ivanov
Hey,
I'm talking about concurrent camera API.

"Most devices that support concurrent cameras only support one back camera and one front camera to be opened at the same time."
I'm talking about specific peace of code:
```
val cameras: MutableList<Camera> = ArrayList()
if (
firstCameraConfig.cameraSelector.lensFacing ==
secondCameraConfig.cameraSelector.lensFacing
) {
if (cameraOperatingMode == CAMERA_OPERATING_MODE_CONCURRENT) {
throw UnsupportedOperationException(
"Camera is already running, call unbindAll() before binding more cameras."
)
}
```
What is the reason for having ```if (cameraOperatingMode == CAMERA_OPERATING_MODE_CONCURRENT ```. I guess if device supports it is must not be imposed by the CameraX.

Ivan Lara

unread,
Jan 15, 2026, 10:49:40 AMJan 15
to Android CameraX Discussion Group, anton....@revolut.com, scot...@google.com, Android CameraX Discussion Group
X

Scott Nien

unread,
Jan 16, 2026, 4:01:50 AMJan 16
to Anton Ivanov, Android CameraX Discussion Group
I got your point. 
The code path you are seeing is for supporting dual selfie camera opening in Pixel fold 9 or 10. Basically it invokes multi-camera APIs instead of concurrent camera APIs. 

Can you share what device you were using?  To my knowledge,  the multiple lens of the same lens-facing should be exposed via the Multi-Camera APIs 



Anton Ivanov

unread,
Jan 16, 2026, 5:41:50 AMJan 16
to Android CameraX Discussion Group, scot...@google.com, Android CameraX Discussion Group, Anton Ivanov
Unfortunately, I can not share the device as it's privately engineered.
But it has one RGB and one IR camera facing the same direction.
Should this configuration be able to work in concurrent mode?

Scott Nien

unread,
Jan 16, 2026, 11:14:42 AMJan 16
to Anton Ivanov, Android CameraX Discussion Group
Ok. We can change the codes to allow same lens-facing camera to be used in concurrent camera. 
  
I filed a bug https://issuetracker.google.com/476401033 to track this feature.  


Anton Ivanov

unread,
Jan 16, 2026, 11:31:54 AMJan 16
to Android CameraX Discussion Group, scot...@google.com, Android CameraX Discussion Group, Anton Ivanov
Thank you
Reply all
Reply to author
Forward
0 new messages