How to access concurrent cameras

6 views
Skip to first unread message

Prathiv Ar

unread,
Jan 22, 2026, 11:44:06 PM (10 hours ago) Jan 22
to Android CameraX Discussion Group
I have a use case were I need to stream both cameras(front & back) same time and use ImageAnalysis.Analyzer to make some changes to the frame.

when I bind the first camera everything works fine 

cameraProvider.bindToLifecycle(

    lifecycleOwner,

    cameraSelector,

    preview,

    imageAnalysis

)


But then the second camera try to bind it doesn't work (yes I know) . I get 

Open count: 1 (Max allowed: 1)


But it works fine in camera2 but the camerax as good stability (lifecycle ....). 

I'm bit confused how to go forward . is there any way to achieve this in X ?

Reply all
Reply to author
Forward
0 new messages