Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

how play online video in QML?



  • Hello,

    I want to play the video from : http://www.meteocentrale.ch/uploads/media/UWZ_EUROPE_COMPLETE_niwofi.mp4 in qml but with :

        MediaPlayer {
            id: mediaplayer
            source: "http://www.meteocentrale.ch/uploads/media/UWZ_EUROPE_COMPLETE_niwofi.mp4"
            //loops:MediaPlayer.Infinite
        }
    
        VideoOutput {
            anchors.fill: parent
            source: mediaplayer
        }
        Component.onCompleted: {
            mediaplayer.play()
        }
    

    I receive error:

    DirectShowPlayerService::doSetUrlSource: Unresolved error code 0x80004005

    but downloading this same file and code like below is working:

        MediaPlayer {
            id: mediaplayer
            source: "file:///E:/Telechargements/Clouds-Precipitation Europe.mp4"
            //loops:MediaPlayer.Infinite
        }
    
        VideoOutput {
            anchors.fill: parent
            source: mediaplayer
        }
        Component.onCompleted: {
            mediaplayer.play()
        }
    

    then it's not codec problem I think...

    Could you help me?

    Thank you very much


Log in to reply