Results 1 to 6 of 6

Thread: Phonon and file's metadata

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2010
    Location
    Rzeszów \ Poland
    Posts
    26
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    3

    Default Phonon and file's metadata

    Hello.
    I want to create a simple music player based on phonon libraries.
    In my GUI I've a tablewidget. It's working at music list.
    But I don't know how to read values ARTIST or TITLE from files metadata to take it to tablewidget after "open files" operation.

    I've a
    Qt Code:
    1. QList<Phonon::MediaSource> files;
    To copy to clipboard, switch view to plain text mode 
    to keep music files in my program. Now, I want to their metadata valuse like this:
    Qt Code:
    1. mediaObject->setCurrentSource(files[index]);
    2. QMap<QString, QString> metaData = mediaObject->metaData();
    3. QString title = metaData.values("TITLE");
    To copy to clipboard, switch view to plain text mode 

    But it doesn't works...

    Anybody know how to help my?
    Last edited by matulik; 30th March 2011 at 23:04.

Similar Threads

  1. Phonon handling mp3 metadata
    By Baasie in forum Qt Programming
    Replies: 1
    Last Post: 25th May 2010, 20:52
  2. Reading audio AND video metadata from files (Phonon?)
    By garfunkel in forum Qt Programming
    Replies: 0
    Last Post: 1st March 2010, 07:32
  3. Inserting PDF metadata
    By Randria in forum Qt Programming
    Replies: 2
    Last Post: 18th May 2009, 10:18
  4. is qt phonon can read realmedia file and divx file
    By fayssalqt in forum Qt Programming
    Replies: 1
    Last Post: 27th January 2009, 15:42
  5. Specifying method metadata
    By brcain in forum Qt Programming
    Replies: 7
    Last Post: 21st September 2006, 01:07

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.