Phonon (software)

For the representation of crystal lattice vibrations within quantum mechanics, see Phonon.
Phonon

An early screenshot of Phonon's setting manager
Developer(s) Matthias Kretz u.a.
Stable release
4.8.3 / 26 December 2014 (2014-12-26)[1]
Repository anongit.kde.org/phonon
Written in C++
Operating system Linux, BSD, Mac OS X, Solaris, Windows
Type Multimedia framework
License GNU Lesser General Public License 2.1
Website phonon.kde.org
Main article: KDE Frameworks

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 Mac OS X, 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,[2] compared to 30 lines in the old audio framework for KDE (aRts)[3]

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.[3]

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.[4][5][6]

Features

Phonon Work

Backends

See also

References

  1. Release announcement for Phonon 4.8.3, 16 December 2014, retrieved 26 December 2015
  2. Kretz, Matthias. "MediaObject Class Reference". Retrieved 2007-12-19.
  3. 1 2 Sanders, N. (2006-05-09). "Phonon and the future of KDE multimedia". Retrieved 2007-12-19.
  4. Colin Guthrie. "Qt Multimedia/Mobility vs. Phonon: FIGHT!!!". Retrieved 2010-11-20.
  5. "QtMultimedia Module". Retrieved 2010-11-20.
  6. "Qt Mobility Project APIs Overview". Retrieved 2010-11-20.
  7. 1 2 Unrau, Troy (2007-02-06). "The Road to KDE 4: Phonon Makes Multimedia Easier". Retrieved 2007-12-19.
  8. "Phonon - KDE UserBase Wiki". Retrieved 1 March 2012.
This article is issued from Wikipedia - version of the 12/26/2015. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.