Reputation: 41
I'm trying to make an android app that preview a stream from an external USB camera. I can see the camera using UsbManager but for some reason, the CameraX doesn't list it in the connected camera list. Does anyone have an idea how to fix this?
Also, I've downloaded for my android device some random app that allows streaming from a USB camera and it worked so I don't think it is a problem that the camera isn't compatible to work with an android device or something like that.
Upvotes: 4
Views: 3803
Reputation: 19243
afaik CameraX doesn't support UVC cameras yet/still and Android doesn't provide a driver... for Android system UVC camera is just "some USB" device (as you noticed - handled by UsbManager
) and you need to provide a driver by self...
so you can use some other libraries for getting UVC video, probably currently best is AndroidUSBCamera by jiangdongguo
Upvotes: 6