Phonon (KDE) 

Phonon
Phonon Logo
Developed by Matthias Kretz u.a.
Latest release 4.2 / 2008
Written in C++
OS Linux, BSD, Mac OS X, Solaris, Windows
Type Multimedia framework
License LGPL
Website phonon.kde.org

Phonon is the multimedia API for KDE 4. Phonon was created to allow KDE 4 to be independent of any single multimedia framework such as GStreamer or Xine and to provide a stable API for KDE 4's lifetime. It was done to fix problems of frameworks becoming unmaintained, API instability, and to create a simple multimedia API.

For example, a file can be played in four lines of C++ code1, compared to 30 lines in the old audio framework (aRts)2

 media = new MediaObject(this);
 connect(media, SIGNAL(finished()), SLOT(slotFinished()));
 media->setCurrentSource("/home/username/music/filename.ogg");
 media->play();

Phonon is not Unix-specific, and backends can be written for it in order to provide the same functionality on other platforms such as Microsoft Windows.

Phonon is not designed to have every conceivable multimedia feature, but rather as a simple way to perform common functions of media players. Some developers may require more control over a backend than Phonon can provide. 2

early screenshot of Phonon's setting manager

Contents

Features

Use in Qt

Phonon is used in Qt release 4.4 and above to provide cross platform audio/video playback. In addition to the Linux backends, backends have been developed for QuickTime (OS X) and DirectX (Windows).5

References

  1. ^ Kretz, Matthias. "MediaObject Class Reference". Retrieved on 2007-12-19.
  2. ^ a b Sanders, N. (2006-5-9). "Phonon and the future of KDE multimedia". Retrieved on 2007-12-19.
  3. ^ a b Unrau, Troy (2007-2-6). "The Road to KDE 4: Phonon Makes Multimedia Easier". Retrieved on 2007-12-19.
  4. ^ Krotoff, Tanguy. "VLC and MPlayer backends".
  5. ^ "Phonon Overview". Qt Software (2008). Retrieved on 2008-10-09.

External links

Free software portal
 This KDE-related article is a stub. You can help Wikipedia by expanding it.