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

WMF audio playback bug

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 5.2.0
    • 5.1.0
    • Multimedia
    • None
    • Windows 7 64bit
    • 291f1229feff087ac9a850ec7a92152f1b69af58

    Description

      If i use wmf plugin as a backend, when i play a mp3 file which is smaller than 2000ms usually it's jumping to end of file middle of playing, if i play it again, it plays normally that can be repeatable, if i play it again it's gonna jump middle of playing again.

      If i use dsengine plugin as a backend there is no such a problem.

      Here is the simple test code, you can see it jumps 0 to 2.088 when you play first time, then if you play it again you will see correctly 0 > 0.9x > 2.088 plays audio file.

      UPDATE: We noticed this problem is not regarding length of audio, even if we have some mp3 files which are about 5 seconds wmf plugin is not playing them correctly, it looks like wmf not able to play some mp3 files, anyway there is one more file i'm adding wmf plugin is playing this correctly.

      main.qml
      import QtQuick 2.1
      import QtMultimedia 5.0
      
      Rectangle {
          id: rect
          width: 640
          height: 240
      
          Audio {
              id: player
              source: "file:///test.mp3"
          }
      
          MouseArea {
              anchors.fill: parent
      
              onClicked: {
                  player.play();
              }
          }
      
          Rectangle {
              anchors { top: parent.top; left: parent.left; bottom: parent.bottom }
              color: "red"
              width: (player.position/player.duration) * rect.width
          }
      
          Text {
              anchors.fill: parent
              text: player.position/1000
              fontSizeMode: Text.Fit; minimumPointSize: 8; font.pointSize: 96
              horizontalAlignment: Text.AlignHCenter
              verticalAlignment: Text.AlignVCenter
          }
      }
      

      Attachments

        1. main.qml
          0.7 kB
        2. test_5s_correct.mp3
          81 kB
        3. test_5s.mp3
          37 kB
        4. test.mp3
          13 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ylopes Yoann Lopes
            hanser Aaron Seng
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes