Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
5.1.0
-
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.
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 } }