Congratulations to our 2022 Qt Champions!

QML Video with autoPlay



  • Hi everyone.

    I have a problem with Qml video element with autoPlay:true

    Sometimes the video starts playing sound but the image is stuck in the first frame and doesn't update until resizing. If i set in the options to use software opengl the error is gone, but other options won't. Another alternative solution is to add:

    autoLoad:true
    onHasVideoChanged {
     video.play()
    }
    

    I'm loading a .mp4 in Windows 10, using the QtCreator target for MSVC2017 x64 compiler.

    Maybe the MediaPlayer thinks the video finished loading but it didn't?


Log in to reply