Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Connect a camera with direct device ID



  • So we connect three cameras with QML. We choose devices like this:
    deviceId: QtMultimedia.availableCameras[0].deviceId

    We would like to enter the device ID's (not names) and connect it. We tried this:
    deviceId: "our device id" or deviceId: 'our device id'

    But it didn't work. Can someone help?



  • It was basic:
    deviceId: "/dev/video0"
    or
    deviceId: "/dev/video2"
    ...

    You can look at device id names on Ubuntu terminal with
    $ ls /dev/video*

    Screenshot from 2021-07-17 12-14-56.png



  • It was basic:
    deviceId: "/dev/video0"
    or
    deviceId: "/dev/video2"
    ...

    You can look at device id names on Ubuntu terminal with
    $ ls /dev/video*

    Screenshot from 2021-07-17 12-14-56.png


Log in to reply