QMediaMetaData::AlbumArtist refuses to work



  • 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.



  • 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.



Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.