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. Qml video metaData returns undefined values
Forum Updated to NodeBB v4.3 + New Features

Qml video metaData returns undefined values

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 159 Views
  • 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.
  • paghsaP Offline
    paghsaP Offline
    paghsa
    wrote on last edited by
    #1

    hi guys
    lets take a look at this code

            Video {
                id: video
                anchors.fill: parent
                autoPlay: true
                source: vidPath !== "" ? ("file:" +  vidPath) : ""
                focus: true
                loops: MediaPlayer.Infinite
    
                MouseArea{
                    anchors.fill: parent
                    hoverEnabled: true
                    onEntered: {
                        console.log(video.metaData.videoBitRate)
                        console.log(video.metaData.size)
                        console.log(video.metaData.videoFrameRate)
                        console.log(video.metaData.duration)
                    }
                }
            }
    

    the problem that i have no idea to figure out is all console.log print undefined
    any help will be appreciate

    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