Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Connect a camera with direct device ID
Forum Updated to NodeBB v4.3 + New Features

Connect a camera with direct device ID

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 1 Posters 355 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.
  • A Offline
    A Offline
    aliemrenebiler
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      aliemrenebiler
      wrote on last edited by aliemrenebiler
      #2

      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

      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