Phonon
Phonon Namespace Reference
Detailed Description
The KDE Multimedia classes.In this Namespace you find the classes to access Multimedia functions for audio and video playback. Those classes are not dependent on any specific framework (like they were in pre KDE4 times) but rather use exchangeable backends to do the work.
If you want to write a new backend take a look at Phonon Backend Development.
Classes | |
| class | AbstractAudioOutput |
| Common base class for all audio outputs. More... | |
| class | AbstractMediaStream |
| Base class for custom media data streams. More... | |
| class | AbstractVideoOutput |
| Common base class for all video outputs. More... | |
| class | AudioOutput |
| Class for audio output to the soundcard. More... | |
| class | Effect |
| Effects that can be inserted into a Path. More... | |
| class | EffectParameter |
| This class describes one parameter of an effect. More... | |
| class | EffectWidget |
| Widget to control the parameters of an Effect. More... | |
| class | MediaController |
| Controls optional features of a media file/device like title, chapter, angle. More... | |
| class | MediaObject |
| Interface for media playback of a given URL. More... | |
| class | MediaSource |
| Note that all constructors of this class are implicit, so that you can simply write. More... | |
| class | ObjectDescription |
| Provides a tuple of enduser visible name and description. More... | |
| class | ObjectDescriptionModel |
| The ObjectDescriptionModel class provides a model from a list of ObjectDescription objects. More... | |
| class | Path |
| Connection object providing convenient effect insertion. More... | |
| class | SeekSlider |
| Widget providing a slider for seeking in MediaObject objects. More... | |
| class | VideoPlayer |
| Playback class for simple tasks. More... | |
| class | VideoWidget |
| Widget to display video. More... | |
| class | VolumeFaderEffect |
| Audio effect to gradually fade the audio volume. More... | |
| class | VolumeSlider |
| Widget providing a slider to control the volume of an AudioOutput. More... | |
Namespaces | |
| namespace | BackendCapabilities |
Enumerations | |
| enum | ObjectDescriptionType { AudioOutputDeviceType, EffectType } |
| enum | DiscType { NoDisc = -1, Cd = 0, Dvd = 1, Vcd = 2 } |
| enum | MetaData |
| enum | State { LoadingState, StoppedState, PlayingState, BufferingState, PausedState, ErrorState } |
| enum | Category { NoCategory = -1, NotificationCategory = 0, MusicCategory = 1, VideoCategory = 2, CommunicationCategory = 3, GameCategory = 4, AccessibilityCategory = 5 } |
| enum | ErrorType { NoError = 0, NormalError = 1, FatalError = 2 } |
Functions | |
| MediaObject * | createPlayer (Phonon::Category category, const MediaSource &source=MediaSource()) |
| QString | categoryToString (Category c) |
Enumeration Type Documentation
| enum Category |
Set's the category your program should be listed in in the mixer.
A Jukebox will set this to Music, a VoIP program to Communication, a DVD player to video, and so on.
- Note:
- These categories can also become useful for an application that controls the volumes automatically, like turning down the music when a call comes in, or turning down the notifications when the media player knows it's playing classical music.
- See also:
- AudioOutput::setCategory
- Enumerator:
| enum DiscType |
Enum to identify the media discs supported by MediaObject.
- See also:
- MediaSource(Phonon::DiscType, const QString &deviceName)
| enum ErrorType |
Tells your program how to recover from an error.
- See also:
- MediaObject::errorType()
- Enumerator:
-
NoError No error. MediaObject::errorType() returns this if MediaObject::state() != Phonon::ErrorState.
NormalError Playback should work, and trying with another URL should work. FatalError Something important does not work. Your program cannot continue playback or capture or whatever it was trying to do without help from the user.
| enum MetaData |
Provided as keys for MediaObject::metaData for convenience, in addition to the strings defined in the Ogg Vorbis specification.
| enum State |
The state the media producing object is in at the moment.
- See also:
- MediaObject
- Enumerator:
Function Documentation
| QString Phonon::categoryToString | ( | Category | c | ) |
Returns a (translated) string to show to the user identifying the given Category.
| MediaObject* Phonon::createPlayer | ( | Phonon::Category | category, | |
| const MediaSource & | source = MediaSource() | |||
| ) |
Convenience function to create a MediaObject and AudioOutput connected by a path.
KDE 4.0 API Reference