import QtQuick 2.0 import QtMultimedia 5.0 Rectangle { id: window width: 800; height:600 property int videoIndex: 0 property variant videos: ["101.mp4", "102.mp4", "103.mp4", "104.mp4", "105.mp4", "106.mp4", "107.mp4", "108.mp4"] Timer { interval: 10000 // change the MediaPlayer source every 10 seconds running: true repeat: true onTriggered: { console.log("Now switching to " + videos[videoIndex]); videoPlayer.stop(); // stop the current MediaPlayer first videoPlayer.source = videos[videoIndex]; // change the MediaPlayer source videoPlayer.play(); // start play the MediaPlayer if(videoIndex < 7) { ++videoIndex; } else { videoIndex = 0; } } } Rectangle { id: bottomRect width: window.width; height: window.height MediaPlayer { id: videoPlayer source: "108.mp4" } VideoOutput { id: videoOutput source: videoPlayer width: parent.width; height: parent.height } } }