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

Load MJPEG video stream to qml



  • Hi,

    I have a problem when trying to show video stream MJPEG. I'm using non desktop in my embbedded device (GL) and using gstreamer 1.0 for qtmultimedia. I already make sure video output and media player works by playing a video. But when i change source of qtmediaplayer to source: "http://192.168.1.103:8000/stream.mjpeg" nothing shown.

    Here is my snippet :

    Rectangle {
        id : myCamera
        width: 800
        height: 600
        color: "black"
        
        property alias myvideo: mediaplayer
        
        MediaPlayer {
            id: mediaplayer
            source: "http://192.168.1.103:8000/stream.mjpeg"
            
            autoPlay: true
        }
        
        VideoOutput {
            id: viewfinder
            visible: true
            
            anchors.fill: parent
            source: mediaplayer
            autoOrientation: true
            
        }
    }
    
    

    I already test the video stream by directly open from web browser. Is there something i should do?

    Thanks and sorry for my english


Log in to reply