Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. how play online video in QML?
Qt 6.11 is out! See what's new in the release blog

how play online video in QML?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 274 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    filipdns
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved