Phonon (software) explained

Phonon
Screenshot Size:250px
Developer:Matthias Kretz u.a.
Released:[1]
Latest Release Version:4.11.1
Latest Release Date:[2]
Programming Language:C++
Operating System:Linux, BSD, macOS, Solaris, Windows
Genre:Multimedia framework
License:GNU Lesser General Public License 2.1

Phonon is the multimedia API provided by KDE and is the standard abstraction for handling multimedia streams within KDE software and also used by several Qt applications.

Phonon was originally created to allow KDE and Qt software to be independent of any single multimedia framework such as GStreamer or xine and to provide a stable API for a major version's lifetime. It was done for various reasons: to create a simple KDE/Qt style multimedia API, to better support native multimedia frameworks on Windows and macOS, and to fix problems of frameworks becoming unmaintained or having API or ABI instability.

For example, a file can be played in four lines of C++ code,[3] compared to 30 lines in the old audio framework for KDE (aRts)[4] Phonon::MediaObject* media = new Phonon::MediaObject(this);createPath(media, new Phonon::AudioOutput(Phonon::MusicCategory, this));media->setCurrentSource(QUrl("/tmp/example.wav"));media->play;Phonon is not designed to have every conceivable multimedia feature, but rather as a simple way to perform common functions of computer media players. Developers that require more control over a given media backend than Phonon can provide are recommended to use the native media API or the GStreamer API on systems for which it is available.[4]

History

The idea behind Phonon started at aKademy 2004 in Ludwigsburg near Stuttgart (Germany), where a new multimedia API had to be chosen to replace aRts. No consensus was reached but a few developers got together and decided to try to develop a new framework with multiple backends. The earliest version was called KDEMM (KDE MultiMedia) and was only supported by JuK and Amarok. Matthias Kretz continued to work single handed on the project as part of his university thesis, The project changed name once more but in February 2006 the name Phonon was finally chosen. The first official release was part of KDE 4.0 in January 2008, the same year Phonon was adopted by Qt and released as part of Qt 4.4. Even though support for Phonon in Qt will continue for the 4.x series, Qt has already replaced Phonon with QtMultimedia and QtMobility.[5] [6] [7]

Features

Backends

See also

External links

Notes and References

  1. Web site: KDE 4.0 Released . 2018-01-11 . 2019-10-23.
  2. Web site: Release announcement for Phonon 4.11.1 . 2019-09-26 . 2019-10-23.
  3. Web site: MediaObject Class Reference . 2007-12-19 . Kretz . Matthias . dead . https://web.archive.org/web/20080426020805/http://api.kde.org/4.0-api/kdelibs-apidocs/phonon/html/classPhonon_1_1MediaObject.html . 2008-04-26.
  4. Web site: Phonon and the future of KDE multimedia. 2007-12-19. 2006-05-09. Sanders. N..
  5. Web site: Qt Multimedia/Mobility vs. Phonon: FIGHT!!! . Guthrie . Colin . 2010-11-20 . 2010-05-27 . https://web.archive.org/web/20100527111914/http://colin.guthr.ie/2010/05/qt-multimediamobility-vs-phonon-fight/ . dead .
  6. Web site: QtMultimedia Module . 2010-11-20 . 2010-08-28 . https://web.archive.org/web/20100828084654/http://doc.qt.nokia.com/4.6/qtmultimedia.html . dead .
  7. Web site: Qt Mobility Project APIs Overview . 2010-11-20 . 2010-05-02 . https://web.archive.org/web/20100502020659/http://doc.qt.nokia.com/qtmobility-1.0/index.html . dead .
  8. Web site: The Road to KDE 4: Phonon Makes Multimedia Easier. 2007-12-19. 2007-02-06. Unrau. Troy.
  9. Web site: Phonon - KDE UserBase Wiki. 2012-03-01.