Quantcast
Channel: Questions in topic: "android sdk"
Viewing all articles
Browse latest Browse all 455

I want to know how to access an external USB camera connected to my Android smartphone.

$
0
0
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() )

Viewing all articles
Browse latest Browse all 455

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>