- Home /
I want to know how to access an external USB camera connected to my Android smartphone.
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 link:getCameraIdList )