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. QMediaMetaData::AlbumArtist refuses to work
Forum Updated to NodeBB v4.3 + New Features

QMediaMetaData::AlbumArtist refuses to work

Scheduled Pinned Locked Moved Unsolved General and Desktop
qmediametadataqt5qmultimediaarch linuxlinux
2 Posts 2 Posters 1.6k 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.
  • V Offline
    V Offline
    Votato
    wrote on last edited by
    #1

    Hi,
    Having some trouble getting QMediaMetaData::AlbumArtist to work. I am able to extract information such as QMediaMetaData::Title and QMediaMetaData::Genre just fine.

    For example, this random MP3 I found, using id3info I can get the following information:

    *** Tag information for /home/vot/01 Frantic.mp3
    === TALB (Album/Movie/Show title): St. Anger
    === TPE1 (Lead performer(s)/Soloist(s)): Metallica
    === TCOM (Composer): James Hetfield, Lars Ulrich, Kirk Hammett, Bob Rock
    === TPOS (Part of a set): 1/1
    === TENC (Encoded by): iTunes 10.5.1.42
    === TCON (Content type): Rock
    === TIT2 (Title/songname/content description): Frantic
    === TRCK (Track number/Position in set): 1/11
    === TYER (Year): 2003
    === TSOA ():  frame
    === TSOP ():  frame
    

    This is my code:

      if (player->isMetaDataAvailable()) {
        ui->label_2->setText(player->metaData(QMediaMetaData::Title).toString());
        ui->label_3->setText(player->metaData(QMediaMetaData::AlbumArtist).toString());
      }
    

    Label_2 gets changed to 'Frantic', but label_3 turns blank.

    I am able to reproduce this issue on the QMultiMedia example provided by the documentation, as well as different types of file such as m4a and mp3.

    If anyone has any clue (possibly a missing package?) please let me know.

    1 Reply Last reply
    0
    • Banshee10000B Offline
      Banshee10000B Offline
      Banshee10000
      wrote on last edited by
      #2

      Hi there, I'm in the exact same boat as you. also

      QMediaMetaData::Author

      returns blank on Linux but works in Windows
      Using Qt5.5.1... Been looking for a few days now for a solution with no luck too.

      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