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. Save TagLib tags while playing music
QtWS25 Last Chance

Save TagLib tags while playing music

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.7k 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.
  • B Offline
    B Offline
    barteksch
    wrote on last edited by
    #1

    I'm creating application for editing music tags with TagLib. When file is choosen I read tags, display them in table model, and then set this file as source to MediaObject. But when I modify tags and try to save a file, read-only error appears. It's because Phonon is reading file. Amarok also uses Phonon and TagLib and there is possibility of saving file while playing music. I've read some Amarok sources (saving tags and initializing Phonon) and I haven't found anything special. Is there anyone who could help me with this problem? Sorry for any language mistakes.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      Anticross
      wrote on last edited by
      #2

      Maybe you need to make some temp file where you put some data(on some period of time, for example 5 sec.) or entirely file from original file opening it, reading some data then closing and then read it by player. So where you not reading original file you can change tags. But if you chose a buffer not full copy of file you maybe need to use QtMultimediea instead Phonon.

      1 Reply Last reply
      0
      • B Offline
        B Offline
        barteksch
        wrote on last edited by
        #3

        Thank you for reply, but yesterday evening I've solved this problem. VLC backend for Phonon was needed.

        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