-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use camerax 1.3.0-alpha04 to open two cameras #564
Comments
Do you want to open front + rear cameras at the same time? Before that, you need to check this flag to see if device is supporting this feature: https://developer.android.com/reference/android/content/pm/PackageManager#FEATURE_CAMERA_CONCURRENT |
I get an error Concurrent camera is not supported on the device , but I can open two cameras at the same time when using camera1. How can I solve this? |
I get an error Concurrent camera is not supported on the device , but I can open two cameras at the same time when using camera1. How can I solve this? |
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 guaranteed. From framework's perspective, we treat this flag as the source of truth. |
My project is an access control project. When using camera1, it is possible to simultaneously turn on the rgb camera and infrared camera. When using camerax, I have tried turning on the rgb camera and infrared camera separately, and both worked without issue. |
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 to open front + rear camera, you could use concurrent camera API. |
@kailianc Is it possible to turn on two rear camera for video recording at same time? |
How to use camerax 1.3.0-alpha04 to open two cameras
The text was updated successfully, but these errors were encountered: