Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-102360

Cannot loop .mp3 infinitely with QMediaPlayer using a `qrc:` QUrl

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.2.4
    • Multimedia
    • None
    • OS:  Ubuntu 22.04, Windows 10
      Qt:  6.2.4

    • Linux/X11, Windows

    Description

      Say the user creates a QMediaPlayer and specifies QMediaPlayer::setLoops(QMediaPlayer::Infinite).  They have an .mp3 file defined in a .qrc file.  When they use a `qrc:` URL, the audio does not loop infinitely.  However, when they provide the full path using a `file:` URL, the audio does loop infinitely.

      Attachments

        1. AudioLoopTest.zip
          46 kB
          André De La Rocha
        2. AudioLoopTestCMake.zip
          49 kB
          Thomas Smith
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            laknoll Lars Knoll
            compscidude Thomas Smith
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes