Playbackrate for QMediaplayer or Audio Qml type is not working as excepted.
-
Hi,
I am using Qt 5.15.2 and ubuntu 20.04, I am trying to play audio file(.wav) using both QMediaplayer and Audio QML Type. It is working with default(1.0) playbackrate. but when initialising Audio Qml type playbackrate 2.0, it is not playing audio on very first time, but working on second time onward, Same issue is happening when i trying to change audio source file.I am also trying to play audio using QMediaPlayer with playbackRate 2.0, It is not playing audio, and status is always returning as buffered(6). And it is working with default playbackRate 1.0.
Audio{ id: audioQml source: audioSourceFile onError: { console.log(errorString) } } Button{ width: 100 text: "play" anchors{ left: comboBoxId.left top: gridlayout.bottom topMargin: 20 } onClicked: { audioQml.play() } } Button{ width: 100 text: "2x Speed" onClicked: { audioQml.playbackRate = 2.0 } }Note: Same application is working with Qt 5.14.0.
Thanks you guys, please let me know if anybody have suggestions.