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

Scene3D and VideoOutput crash in QML



  • Hi all,
    I am doing an application. There is an integration between Scene3D and MediaPlayer
     Scene3D {
            id: grid
            width: parent.width
            height: parent.height
            cameraAspectRatioMode: Scene3D.AutomaticAspectRatio
          ....................................

    Rectangle {
                        anchors.fill: parent
                        color: 'transparent'
                    }
                    Item {
                        width: 640
                        height: 480

    MediaPlayer {
                            id: player
                            source: "file: /// C: /Users/public.CPP00128252D/Desktop/HUD3D_Custom/Video/NPB.avi"
                        }

    VideoOutput {
                            anchors.fill: parent
                            source: player
                        }

    Component.onCompleted: {
                            player.play ();
                        }
                    }
    However, every time I run the program crashed. I do not know the cause and solution. Look forward to the help of everyone.
    Thank you


Log in to reply