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. metadata in Mediaplayer are undefined
Forum Updated to NodeBB v4.3 + New Features

metadata in Mediaplayer are undefined

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
mediaplayerqmlmetadata
1 Posts 1 Posters 601 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.
  • Judicael BayoliJ Offline
    Judicael BayoliJ Offline
    Judicael Bayoli
    wrote on last edited by
    #1

    Hi every body, I'm working in a app to play mp3 files, so I wrote this code

    
    MediaPlayer {
         id: player
         source: "qrc:/music/lecrae-fear.mp3"
    }
    
    Text {
         id: musicTitle
         text: player.metaData.title
    }
    

    This is just a part of my code, the problem is in the application out put I get message that say : Unable to assign a [undefined] to a QString. I don't know how I could fix it. Thanks for your helps

    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