Does CameraX have the ability to select which of the
Smartphone cameras you use for the photo? Can we select whether to use
the wide, normal or telephoto?
Thanks
Mohammad
I have tried both options, in both cases, I am getting center camera, I am not getting telephoto camera or wide-angle camera.
Using CameraProvider.getAvailableCameraInfos, I am getting one camera.
My whole implementation on cameraX. It seems your provided
solution for camera2 API. If yes, can I use camera2 and camera at the same time?
Thanks
Mohammad
--
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 on the web visit https://groups.google.com/a/android.com/d/msgid/camerax-developers/CAHDOb3nASbCT9NE%3Djo1kJcLi6_86HUinr-zwRPBUjeM%3DOLHc6w%40mail.gmail.com.
java.lang.IllegalArgumentException: Provided camera selector unable to resolve a camera for the given use case
at androidx.camera.lifecycle.ProcessCameraProvider.bindToLifecycle(ProcessCameraProvider.java:470)
at androidx.camera.lifecycle.ProcessCameraProvider.bindToLifecycle(ProcessCameraProvider.java:360)
CameraSelector cameraSelector;
cameraSelector = new CameraSelector.Builder()
.requireLensFacing(1)
.build();
camera = cameraProvider.bindToLifecycle(this, cameraSelector, preview,
imageCapture);