Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.5.0
-
None
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:
- Play the sound. The sound is looped 3 times.
- 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();
}
}