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. QT and audio files
Qt 6.11 is out! See what's new in the release blog

QT and audio files

Scheduled Pinned Locked Moved General and Desktop
5 Posts 4 Posters 1.7k 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.
  • J Offline
    J Offline
    joni8a
    wrote on last edited by
    #1

    Hello,

    I want to create a small audio player, which can play different formats like mp3, mp4 etc. I also want to get informations from the audio file like artist etc. But I dont want to install an extra audio player on my plattform, so everything has to be done with coding. Is this possible with QT?

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

      Hi,

      Have a look at the "Phonon module":http://qt-project.org/doc/qt-4.8/phonon-module.html

      As a side not, it's spelled Qt, QT is for Apple's QuickTime

      Hope it helps

      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
      • B Offline
        B Offline
        Beberd
        wrote on last edited by
        #3

        Yes phonon should help you.
        This link is an example of phonon : http://qt.developpez.com/doc/4.6/phonon-qmusicplayer/

        1 Reply Last reply
        0
        • J Offline
          J Offline
          joni8a
          wrote on last edited by
          #4

          Does it also work with Qt 5? Because when I try to add phonon to the pro file, I get linking errors. When I searched google it seems like phonon is no longer supported in Qt 5 and that I have to use qtmultimedia, is that right?

          1 Reply Last reply
          0
          • S Offline
            S Offline
            scroverty
            wrote on last edited by
            #5

            QMultimedia is good enough with playing media files, and there's also a Qt class to read mime data (I'm sure it's included in QMultimedia) so you'll be fine.

            Alvis Ar'Berkeley Andrew.
            Pleased to meet you!

            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