Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved QMediaMetaData::AlbumArtist refuses to work

    General and Desktop
    qmediametadata qt5 qmultimedia arch linux linux
    2
    2
    1288
    Loading More Posts
    • 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
      Votato last edited by

      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 Reply Quote 0
      • Banshee10000
        Banshee10000 last edited by

        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 Reply Quote 0
        • First post
          Last post