I currently want to access external USB camera connected via USB to my Android smartphone.
I want to get a list containing the camera ID of an external camera using the method "getCameraIdList ()" of "android.hardware.camera2.CameraManager" in a Unity app (Script).
I don't think I can get the camera ID of an external camera without using
"HIDL: android.hardware.camera.provider@2.4" in Android's open source, But I only had no idea how to bring the package to Unity with "AndroidJavaClass provider = new AndroidJavaClass (" android.hardware.camera.provider@2.4 ");".
How do I create a Unity script (C #) to get a list that includes the camera IDs of external cameras?
I would greatly appreciate it if you could let me know.
Thank you.
link:[android.hardware.camera.provider@2.4](https://android.googlesource.com/platform/hardware/interfaces/+/refs/heads/master/camera/provider/2.4/ICameraProvider.hal)
link:[getCameraIdList](https://developer.android.com/reference/android/hardware/camera2/CameraManager?hl=ja#getCameraIdList() )
↧