kailianc
kailianc
Hi, CameraX will support back and front camera operating at the same time in the next alpha release. Not only for preview but also for image capture and potentially other...
To check the device capability of concurrent cameras in Camera2, you can use FEATURE_CAMERA_CONCURRENT. https://developer.android.com/reference/android/content/pm/PackageManager#FEATURE_CAMERA_CONCURRENT
Hi lodgkk, Version 1.3.0-alpha06 is the latest version supporting both front and back cameras simultaneously. https://developer.android.com/jetpack/androidx/releases/camera#1.3.0-alpha06 This is the javadoc for main api: https://android.googlesource.com/platform/frameworks/support/+/refs/heads/androidx-main/camera/camera-lifecycle/src/main/java/androidx/camera/lifecycle/ProcessCameraProvider.java#759 This is the sample app to...
If it's not supported on this device, then OEM decides to not expose this feature (e.g. due to power consumption or other device capability reason), the behavior will not be...
Do you want to open front + rear cameras at the same time? https://developer.android.com/reference/androidx/camera/lifecycle/ProcessCameraProvider#getAvailableConcurrentCameraInfos%28%29 Before that, you need to check this flag to see if device is supporting this feature:...
Are you opening the front and rear cameras? It's possible that some OEMs don't advertise this feature but you are still be able to try, but the stability is not...
CameraX Concurrent camera API only refers to opening front + rear camera on the device at the same time. Opening rgb camera and infrared camera is different. If you want...
This is the sample app to show a front + back camera previews in Picture-in-Picture layout or Side-by-Side layout: https://android.googlesource.com/platform/frameworks/support/+/refs/heads/androidx-main/camera/integration-tests/coretestapp/src/main/java/androidx/camera/integration/core/ConcurrentCameraActivity.java#239 In v1, we are only supporting two streams output. To...
Yes, you could file a feature request to https://issuetracker.google.com/issues/new?component=618491&template=1257717. We will prioritize the feature in the next version of this feature. To mention, not all devices will support concurrent dual...
Thanks for the feedback.