Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Scene3D and VideoOutput crash in QML
Forum Updated to NodeBB v4.3 + New Features

Scene3D and VideoOutput crash in QML

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 247 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.
  • C Offline
    C Offline
    canlx
    wrote on last edited by
    #1

    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

    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