Problems with Open-Source Downloads read https://www.qt.io/blog/problem-with-open-source-downloads and https://forum.qt.io/post/638946

Video/media playback (noob question)



  • I'm trying to get a video to play when a button is clicked.
    well I can do that using

    @
    import QtMultimedia 5.0
    ......
    ...........
    Item {
    MediaPlayer {
    id: mediaplayer
    source: "bear.mp4"
    }
    VideoOutput {
    id: video
    source: mediaplayer
    width: 1280;
    height: 800
    }
    ............
    ..................
    @

    but it only plays in the background without any controls. How can I get it to play in front of all my images and have controls like close, pause...


Log in to reply