Qt USB UVC video device not working in Android. Works in Win, Mac, Linux
-
TIA to the community for your time and advice.
I am working on a community based project and am struggling with Qt and and a USB UVC capture device on Android.
The app I am working on is being built in Qt 5.5 and has a function that allows input from a camera or a UVC capture device. The app runs great in Windows, Linux and Mac and will detect the UVC device but the device is not appearing in Android; the app does detect the built-in cameras on the Android though. Oddly, when plugging the UVC device in to my Android, the Android shows my app as an option for using it so I know the OS is detecting it. The device also works with a camera app I downloaded from the Play Store.
I have never ran into this with Qt. Usually if something works in Linux and Mac it has worked when compiling for android.
The code that builds the camera list is below... Please let me know if you have any ideas. Thanks.
QList<QCameraInfo> cameras = QCameraInfo::availableCameras(); foreach (const QCameraInfo &cameraInfo, cameras) { if(cameraInfo.description() == vSource) { _videoSourceID = cameraInfo.deviceName(); emit videoSourceIDChanged(); qCDebug(VideoManagerLog) << "Found USB source:" << _videoSourceID << " Name:" << _videoSource; break; } }
-
Hi and welcome to devnet,
I'm no specialist of Android but since you mention UVC, I wonder if these cameras are handled the same way os the builtin cameras.
You should bring this topic to the Qt Android development mailing list. You'll find there Qt's Android port developers/maintainers. This forum use more user oriented.