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

Enable WebRTC for Web App

Scheduled Pinned Locked Moved Solved Support
15 Posts 3 Posters 646 Views 2 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.
    • C Offline
      Cryptuser11
      last edited by 7 Aug 2024, 23:53

      Hello, I am creating a QML Web application which must use webRTC but I learned that it had been disabled in the Morph browser in recent versions:

      This is a very good reason because it prevents IP leaks.

      But I need it for my application which is confined only even by adding flag parameters to the WebEngine:

      --enable-webrtc-hw-vp8-encoding --use-fake-ui-for-media-stream --enable -media-stream
      

      It still does not work. How to solve this problem ?

      Redmi note 9 pro

      D 1 Reply Last reply 8 Aug 2024, 00:41 Reply Quote 0
      • D Offline
        domubpkm @Cryptuser11
        last edited by 8 Aug 2024, 00:41

        @Cryptuser11 said in Enable WebRTC for Web App:

        I learned that it had been disabled in the Morph browser in recent versions:

        Please, can you give me a link of this info ? Thank you

        C 1 Reply Last reply 8 Aug 2024, 14:07 Reply Quote 0
        • I Offline
          ikoz
          last edited by 8 Aug 2024, 10:12

          As far as I know, what causes IP leaks is webRTC connections with public IPs. This is how to enable it on the QtWebEngine, If you aren't using a VPN you shouldn't care about the leaks.

          import QtWebEngine 1.11
          import QtQuick 2.12
          
          WebEngineView {
              settings.webRTCPublicInterfacesOnly: true
          }
          

          from my unreleased browser

          May the source be with you

          C 1 Reply Last reply 8 Aug 2024, 14:10 Reply Quote 0
          • C Offline
            Cryptuser11 @domubpkm
            last edited by 8 Aug 2024, 14:07

            @domubpkm For you https://github.com/ubports/morph-browser/issues/257

            Redmi note 9 pro

            D 1 Reply Last reply 9 Aug 2024, 06:04 Reply Quote 0
            • C Offline
              Cryptuser11 @ikoz
              last edited by 8 Aug 2024, 14:10

              @ikoz It didn't work, and I even built your octobrowser application on my phone and the webrtc doesn't work (also tested on browserleak).

              How then to enable webRTC in QTwebengine?

              Redmi note 9 pro

              I 1 Reply Last reply 8 Aug 2024, 16:12 Reply Quote 0
              • I Offline
                ikoz @Cryptuser11
                last edited by 8 Aug 2024, 16:12

                @Cryptuser11 On my device both checks have a green mark on webrtc support detection from browserleaks, doesn't that mean it works?
                1000007070.jpg

                May the source be with you

                C 1 Reply Last reply 8 Aug 2024, 16:36 Reply Quote 0
                • C Offline
                  Cryptuser11 @ikoz
                  last edited by 8 Aug 2024, 16:36

                  @ikoz No WebRTC is disabled, because otherwise even with a VPN your IP would be leaked.
                  So Imy App is pretty simple, I created a web view of https://pairdrop.net to transfer files locally.

                  It works only in the simulator with clickable desktop but not when the application is installed on my Ubuntu touch... You can test it with pairdrop.net

                  Redmi note 9 pro

                  I 1 Reply Last reply 9 Aug 2024, 05:56 Reply Quote 0
                  • I Offline
                    ikoz @Cryptuser11
                    last edited by 9 Aug 2024, 05:56

                    @Cryptuser11 I am able to use this webapp to share text between android and ubuntu touch. I don't see the problem.

                    May the source be with you

                    C 1 Reply Last reply 9 Aug 2024, 20:41 Reply Quote 0
                    • D Offline
                      domubpkm @Cryptuser11
                      last edited by 9 Aug 2024, 06:04

                      @Cryptuser11 Yes, i know that because i had opened the issue. The good link now is https://gitlab.com/ubports/development/core/morph-browser/-/issues/257 . However, the issue is always opened. Are you sure there is no WebRTC link currently in focal OTA-5 ?

                      C 1 Reply Last reply 9 Aug 2024, 20:39 Reply Quote 0
                      • C Offline
                        Cryptuser11 @domubpkm
                        last edited by 9 Aug 2024, 20:39

                        @domubpkm Bro, WebRTC is disabled in morph browser you can test in your side with browserleak,and I can not share file with pairdrop.net in my Android devices!
                        I would find any solution to fix that because in the clickable simulator it's work fine but not in UT;)

                        Redmi note 9 pro

                        1 Reply Last reply Reply Quote 0
                        • C Offline
                          Cryptuser11 @ikoz
                          last edited by 9 Aug 2024, 20:41

                          @ikoz Can you explain your environment and your setup? Test share files between your Android or computer with UT in pairdrop.net

                          Redmi note 9 pro

                          I 1 Reply Last reply 9 Aug 2024, 21:09 Reply Quote 0
                          • I Offline
                            ikoz @Cryptuser11
                            last edited by ikoz 8 Sept 2024, 21:10 9 Aug 2024, 21:09

                            @Cryptuser11 My setup is a phone with ubuntu touch 20.04 on latest RC, all browsers work (including morph) and an android device with firefox. I can succesfully pair devices, send text and share an image. What is your setup?

                            May the source be with you

                            C 1 Reply Last reply 10 Aug 2024, 20:43 Reply Quote 0
                            • C Offline
                              Cryptuser11 @ikoz
                              last edited by 10 Aug 2024, 20:43

                              @ikoz Okey very strange on my Ubuntu touch he not work, can you test my app and say me if work? The app: https://open-store.io/app/pairdrop.lucstay11

                              Redmi note 9 pro

                              I 1 Reply Last reply 11 Aug 2024, 15:18 Reply Quote 0
                              • I Offline
                                ikoz @Cryptuser11
                                last edited by 11 Aug 2024, 15:18

                                @Cryptuser11 It works on the app as well. What devices are you testing it on?

                                May the source be with you

                                C 1 Reply Last reply 11 Aug 2024, 18:28 Reply Quote 0
                                • C Offline
                                  Cryptuser11 @ikoz
                                  last edited by 11 Aug 2024, 18:28

                                  @ikoz It's my Phone the problem I think (Redmi note 9 pro)

                                  Redmi note 9 pro

                                  1 Reply Last reply Reply Quote 0
                                  • C Cryptuser11 has marked this topic as solved on 11 Aug 2024, 18:28
                                  5 out of 15
                                  • First post
                                    5/15
                                    Last post