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

MediaPlayer loops property works only one time

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.5.1
    • 6.5.0
    • Multimedia
    • None
    • Windows

    Description

      The loop parameter works only one time. After this, the audio is played only once. The problem does not occur in Qt 6.4.2.

      Steps to reproduce:

      1. Play the sound. The sound is looped 3 times.
      2. Play the sound again. Now the sound is played only one time.
          MediaPlayer {
              id: bellSound
              source: "audio.mp3"
              loops: 3
              audioOutput: AudioOutput {}
          }
      
          MouseArea {
              id: mouseArea
              anchors.fill: parent
             
              onClicked: {
                  bellSound.stop();
                  bellSound.position = 0;
                  bellSound.play();
              }
          }
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            padubsky Pavel Dubsky
            Harald Meyer Harald Meyer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes