Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML MediaPlayer stopped playing local Audio in Qt 6.6
Forum Updated to NodeBB v4.3 + New Features

QML MediaPlayer stopped playing local Audio in Qt 6.6

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 2 Posters 357 Views 1 Watching
  • 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
    McNepp02
    wrote on last edited by
    #1

    Hi,

    I'm using a MediaPlayer in QML. For testing, I provide URLs referencing local Audio files.

    In Qt 6.4.3, the following worked:

    ...
    mediaPlayer.source = "file://C:/Windows/media/Ring02.wav"
    mediaPlayer.play()
    ...

    With Qt 6.6.3, however, it does not play anything, but eventually reports an error 1, Could not open file

    I've already tried to percent-encode the URL, but to no avail.

    Any ideas?

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

      Hi,

      Can you try to force the native plugin for Windows ?

      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
        McNepp02
        wrote on last edited by
        #3

        Hi,
        thanks for your reply. AFAIK, in Qt 6 there are no backend-plugins for Multimedia anymore.
        Thus, I'm not sure what you suggest I should do.

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

          There are still plugins, the way they are managed has changed. Currently the native and ffmpeg with default being ffmpeg since 6.5.

          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

          • Login

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