Playing video in a loop
QML and Qt Quick
2
Posts
1
Posters
1.4k
Views
1
Watching
-
wrote on 11 Mar 2013, 21:28 last edited by
Hi guys,
I'm trying to play a video in an endless loop, using QtQuick 2.0 and QtMultimedia 5.0 on Win8/32Bit.
The video plays until it reaches the end. The debug message is thenshown, but the video does not restart. Also tried to reset video position to 0, but that didn't help either.
Any idea what's wrong here?
@Video {
id: video1
source: "C:/Users/zeroc8/Videos/freeride.wmv"
autoPlay: false
anchors.fill: parent
opacity: 0.6
focus: true
onStopped: {
console.debug("Video stopped")
video1.play()
}}@
-
wrote on 12 Mar 2013, 08:30 last edited by
Got it, all I need to do is to set the video source again.
1/2