Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt USB UVC video device not working in Android. Works in Win, Mac, Linux

Qt USB UVC video device not working in Android. Works in Win, Mac, Linux

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 2 Posters 1.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Gio725
    wrote on last edited by A Former User
    #1

    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;
            }
        }
    
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved