Looping a video infinitely, using QtMultimedia 5.0



  • Hi!

    I need to play a video looping infinitely, my current solution:

    @

    MediaPlayer {
    id: mediaPlayer
    autoPlay: true
    source : "vid.mp4"
    onPositionChanged: {

            if(position > limit){
                seek(0);
            }
        }
    
    }
    

    @

    However, it introduces notable 'pause'-state, how to smoothly playing an infinite loop of video?

    Thanks!

    Dio


Log in to reply
 

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