Playing video in a loop

  • 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")


  • Got it, all I need to do is to set the video source again.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.