Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QML Video on Android does not load from URLs

QML Video on Android does not load from URLs

Scheduled Pinned Locked Moved Solved Mobile and Embedded
7 Posts 2 Posters 590 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.
  • M Offline
    M Offline
    Michel de Boer
    wrote on last edited by
    #1

    I try to run the MediaPlayerApp from Qt6.6.1 examples.
    On Linux it all works fine, but not on Android.

    On Android it seems it can only play video from local files, but not from a URL.

    The example code has this as source for MediaPlayer:

    source: new URL("https://download.qt.io/learning/videos/media-player-example/Qt_LogoMergeEffect.mp4")
    

    When it tries to load it gives the error string: "Could not open file"
    I have tried with other URL. Every time I get the same error.

    When I download the file myself on Android and the provide the file as source, then it plays!

    Is this a bug?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Did you also deploy the OpenSSL librairies with your Androïd application ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      M 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Did you also deploy the OpenSSL librairies with your Androïd application ?

        M Offline
        M Offline
        Michel de Boer
        wrote on last edited by
        #3

        @SGaist Yes
        I found a bug report that describes the problem I encountered: https://bugreports.qt.io/browse/QTBUG-113980?jql=text ~ "qml android play video"

        It says that it is fixed in Qt6.6.1 That does not seem the case as I got exactly this problem in 6.6.1

        SGaistS 1 Reply Last reply
        0
        • M Michel de Boer

          @SGaist Yes
          I found a bug report that describes the problem I encountered: https://bugreports.qt.io/browse/QTBUG-113980?jql=text ~ "qml android play video"

          It says that it is fixed in Qt6.6.1 That does not seem the case as I got exactly this problem in 6.6.1

          SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Michel-de-Boer then you should update the report to add your findings.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          M 1 Reply Last reply
          0
          • SGaistS SGaist

            @Michel-de-Boer then you should update the report to add your findings.

            M Offline
            M Offline
            Michel de Boer
            wrote on last edited by
            #5

            @SGaist I have created a new BUG report with my findings and referred to the one I found. That one was closed and I could not add to it.
            Also I have tried 6.7.0-dev snapshot. There the bug is fixed!
            Unfortunately that is not a viable solution as that snapshot is quite unstable.

            SGaistS 1 Reply Last reply
            0
            • M Michel de Boer

              @SGaist I have created a new BUG report with my findings and referred to the one I found. That one was closed and I could not add to it.
              Also I have tried 6.7.0-dev snapshot. There the bug is fixed!
              Unfortunately that is not a viable solution as that snapshot is quite unstable.

              SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Michel-de-Boer can you post the link to your report ? That will make it even easier to find and follow.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • M Offline
                M Offline
                Michel de Boer
                wrote on last edited by
                #7

                @SGaist Ah yes. Forgot to add it. Here it is:
                https://bugreports.qt.io/browse/QTBUG-119788

                1 Reply Last reply
                1
                • M Michel de Boer has marked this topic as solved on

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved