Connect a camera with direct device ID
Solved
QML and Qt Quick
-
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"
ordeviceId: '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*