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 612 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

        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 Reply Quote 0
        • D Offline
          domubpkm @Cryptuser11
          last edited by

          @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 Reply Quote 0
          • ikozI Offline
            ikoz
            last edited by

            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 Reply Quote 0
            • C Offline
              Cryptuser11 @domubpkm
              last edited by

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

              Redmi note 9 pro

              D 1 Reply Last reply Reply Quote 0
              • C Offline
                Cryptuser11 @ikoz
                last edited by

                @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

                ikozI 1 Reply Last reply Reply Quote 0
                • ikozI Offline
                  ikoz @Cryptuser11
                  last edited by

                  @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 Reply Quote 0
                  • C Offline
                    Cryptuser11 @ikoz
                    last edited by

                    @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

                    ikozI 1 Reply Last reply Reply Quote 0
                    • ikozI Offline
                      ikoz @Cryptuser11
                      last edited by

                      @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 Reply Quote 0
                      • D Offline
                        domubpkm @Cryptuser11
                        last edited by

                        @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 Reply Quote 0
                        • C Offline
                          Cryptuser11 @domubpkm
                          last edited by

                          @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

                            @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

                            ikozI 1 Reply Last reply Reply Quote 0
                            • ikozI Offline
                              ikoz @Cryptuser11
                              last edited by ikoz

                              @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 Reply Quote 0
                              • C Offline
                                Cryptuser11 @ikoz
                                last edited by

                                @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

                                ikozI 1 Reply Last reply Reply Quote 0
                                • ikozI Offline
                                  ikoz @Cryptuser11
                                  last edited by

                                  @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 Reply Quote 0
                                  • C Offline
                                    Cryptuser11 @ikoz
                                    last edited by

                                    @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
                                    • First post
                                      Last post