• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
UBports Robot Logo UBports Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

How to enable camera in Morphbrowser

Scheduled Pinned Locked Moved BQ M10 FHD
5 Posts 4 Posters 634 Views 1 Watching
Loading More Posts
  • 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.
    • S Offline
      Severin
      last edited by Severin 21 Jul 2021, 06:54

      Re: Ubuntu Touch - questions about apps

      I have an Aquaris M10 FHD, and it says at ubports devices, the camera works in the Morph browser. But I cannot allow the use of the camera. In settings - privacy & permissions is a section camera and microphone. But there is no button for activation. And I can't get it started.

      How do I fix that?

      1 Reply Last reply Reply Quote 2
      • D Offline
        dobey
        last edited by 21 Jul 2021, 18:00

        The devices page only says that the camera works for photo and video. It doesn't distinguish between what apps may work with the camera hardware. As it happens, the browser cannot use the camera on any Android based device running UT, as Android devices use a camera service rather than providing traditional video4linux support.

        In order to get the camera to work, someone would have to take the time to develop a bridge to the Android HAL's camera service by providing a v4l compatible device interface on the Ubuntu Touch side.

        L 1 Reply Last reply 27 Jul 2021, 15:22 Reply Quote 0
        • L Offline
          Luksus @dobey
          last edited by 27 Jul 2021, 15:22

          @dobey I thought the main issue was the trust-store, that it is not possible to grant access for Morph/WebEngine: https://github.com/ubports/trust-store/pull/18

          Devices: BQ e4.5, Fairphone 2, Fairphone 3, Lenovo X605F, Pinephone, Moto Z2 Force, OnePlus5T

          K D 2 Replies Last reply 27 Jul 2021, 18:20 Reply Quote 0
          • K Offline
            kugiigi @Luksus
            last edited by 27 Jul 2021, 18:20

            @luksus I think that issue only applies on the microphone as it already work on devices with apparmor issues.

            1 Reply Last reply Reply Quote -1
            • D Offline
              dobey @Luksus
              last edited by 28 Jul 2021, 17:59

              @luksus No, that's a separate issue. Audio does go through pulseaudio already in QtWebEngine, so microphone can be used, but camera on Android based devices is done via a Qt plug-in which talks to the Android HAL via libhybris, however video/camera support in QtWebEngine does not go through QtMultimedia, therefore it does not use that plug-in. Instead, it expects v4l devices, and QtWebEngine itself has no knowledge of what libhybris is or how to use it.

              Therefore, someone needs to do the work to write a system service which bridges the Android HAL for CameraService as v4l compatible device on the Ubuntu side of things, so that apps using v4l for camera access will just work.

              1 Reply Last reply Reply Quote 3
              4 out of 5
              • First post
                4/5
                Last post