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. how to get the details of a media file
Qt 6.11 is out! See what's new in the release blog

how to get the details of a media file

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

    im trying to get the details of mp3 file
    look at the picture: http://imgur.com/Xw0PFSP
    QFileInfo doesnt help me.
    can someone help me ? ty

    1 Reply Last reply
    0
    • jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Check the documentation for QMediaObject class: http://doc.qt.io/qt-5/qmediaobject.html
      Especially
      QVariant QMediaObject::metaData(const QString & key) const
      You probably will need to use QAudioDecoder class which is derived from QMediaObject.

      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