![]() |
|||||||||||||
|
Phonon (KDE) |
![]() |
|
| 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
Contents |
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
|
|||||||||||||||||