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. Metadata from audio file

Metadata from audio file

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 649 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.
  • Shaman13S Offline
    Shaman13S Offline
    Shaman13
    wrote on last edited by Shaman13
    #1

    Hello, guys! Please help me I try get metadata from different audio files, but all time got empty string. In QML same situation. Thank you for attention!

        connect(m_pPlayer,SIGNAL(metaDataChanged(QString,QVariant)),this,SLOT(metaData(QString,QVariant)));
        connect(m_pPlayer,SIGNAL(metaDataChanged()),this,SLOT(metaDataChanged()));
    
    
    void metaData(QString key, QVariant value)
    {
        qDebug() << "Key : " << key;
        qDebug() << "Value : " << value.toString();
    }
    
    void metaDataChanged()
    {
        qDebug() << "Changed";
        if(m_pPlayer->isMetaDataAvailable())
        {
            qDebug() << "Available";
            qDebug() << m_pPlayer->metaData(QMediaMetaData::AlbumTitle).value<QString>();
        }
         qDebug() << m_pPlayer->metaData(QMediaMetaData::AlbumTitle).value<QString>();
    }
    
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Are you sure you have the metadata requested in your files ?

      What version of Qt on what OS are you running ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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