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

metadata in Mediaplayer are undefined

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
mediaplayerqmlmetadata
1 Posts 1 Posters 594 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.
  • J Offline
    J Offline
    Judicael Bayoli
    wrote on 14 Nov 2017, 19:36 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

    1/1

    14 Nov 2017, 19:36

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved