ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #24026
Re: connecting an USB video cam to the BQ E4.5 -- how to view the video stream?
El día jueves, enero 25, 2018 a las 08:36:33p. m. +0100, Christoph Schulz escribió:
> Maybe QtMultimedia detects the webcam and you can use it from there?
>
> $ cat >cameras.qml <<EOT
> import QtQuick 2.4
> import QtMultimedia 5.6
>
> ListView {
> model: QtMultimedia.availableCameras
> delegate: Text {
> text: "id: " + modelData.id + ", name: " + modelData.displayName
> }
> }
> EOT
>
> $ cat >$HOME/.local/share/applications/cameras.desktop <<EOT
> [Desktop Entry]
> Name=Camera List
> Exec=qmlscene $HOME/cameras.qml
> Type=Application
> X-Ubuntu-Touch=true
> EOT
>
> Then refresh your app scope and start it from there and see if there
> are more than the two default cameras (front/back).
>
> My E4.5's output:
>
> id: undefined, name: Camera 0 Back facing
> id: undefined, name: Camera 1 Front facing
>
> Hope this helps.
Thanks, Christoph, for your hint. It shows only the two plug'ed in cams
when the USB one is attached too.
Perhaps some permission/confined problem.
matthias
--
Matthias Apitz, ✉ guru@xxxxxxxxxxx, ⌂ http://www.unixarea.de/ 📱 +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub
Attachment:
signature.asc
Description: PGP signature
References