Details
-
Bug
-
Resolution: Cannot Reproduce
-
P2: Important
-
None
-
5.4.2, 5.5.1
-
None
-
Ubuntu desktop, gcc, 64-bit
Description
In the following example the sound is played only when I click Play button for the first time. Subsequent clicks have no effect.
import QtQuick 2.5 import QtQuick.Window 2.2 import QtQuick.Controls 1.4 import QtMultimedia 5.5 Window { visible: true Column { anchors.centerIn: parent Button { text: "Play" onClicked: audio.play() } Button { text: "Stop" onClicked: audio.stop() } } Audio { id: audio source: "success.ogg" onError: { console.log("error: " + error) } onStatusChanged: console.log("status: " + status) } }
I already tried:
- to set loops property to 3, but the media is still played just once
- MediaPlayer instead of Audio element
- to click Stop button after the music finishes and then again Play
- to load the audio file from resources
No error message is printed.