Phonon (KDE)

From Wikipedia, the free encyclopedia

Current event marker This article or section contains information about scheduled or expected future software.
The content may change dramatically as the software release approaches and more information becomes available.
Software Development

Phonon will be the new multimedia framework for KDE4. Phonon will provide an easy way for KDE developers to use various backends, such as Xine, GStreamer and NMM. For example, all the C++ code needed to play a file is:[1]

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

With the old audio framework (aRts), it required 30 lines of code to do that.[2]

Phonon will not be targeted at developers that need more control over the backends, just the simple things like playing or streaming audio/video.[3]

[edit] External links

In other languages