Phonon
mediaobject.h
658 PHONON_EXPORT MediaObject *createPlayer(Phonon::Category category, const MediaSource &source = MediaSource());
void setCurrentSource(const MediaSource &source)
Set the media source the MediaObject should use.
Definition mediaobject.cpp:229
void metaDataChanged()
This signal is emitted whenever the audio/video data that is being played is associated with new meta...
void seekableChanged(bool isSeekable)
Emitted whenever the return value of isSeekable() changes.
void currentSourceChanged(const Phonon::MediaSource &newSource)
Emitted when the MediaObject makes a transition to the next MediaSource in the queue().
void setQueue(const QList< MediaSource > &sources)
Set the MediaSources to play when the current media has finished.
Definition mediaobject.cpp:270
void stateChanged(Phonon::State newstate, Phonon::State oldstate)
Emitted when the state of the MediaObject has changed.
void prefinishMarkReached(qint32 msecToEnd)
Emitted when there are only msecToEnd milliseconds left for playback.
qint64 currentTime() const
Get the current time (in milliseconds) of the file currently being played.
void aboutToFinish()
Emitted before the playback of the whole queue stops.
void bufferStatus(int percentFilled)
Tells about the status of the buffer.
ErrorType errorType() const
Tells your program what to do about the error.
Definition mediaobject.cpp:146
void setTickInterval(qint32 newTickInterval)
Sets the tick interval in milliseconds.
void totalTimeChanged(qint64 newTotalTime)
This signal is emitted as soon as the total time of the media file is known or has changed.
bool isSeekable() const
Check whether the current media may be seeked.
QStringList metaData(const QString &key) const
Returns the strings associated with the given key.
Definition mediaobject.cpp:183
void enqueue(const MediaSource &source)
Appends one source to the queue.
Definition mediaobject.cpp:284
QString errorString() const
Returns a human-readable description of the last error that occurred.
Definition mediaobject.cpp:132
void tick(qint64 time)
This signal gets emitted every tickInterval milliseconds.
qint64 totalTime() const
Get the total time (in milliseconds) of the file currently being played.
Definition mediaobject.cpp:201
qint64 remainingTime() const
Get the remaining time (in milliseconds) of the file currently being played.
Definition mediaobject.cpp:210
bool hasVideo() const
Check whether the media data includes a video stream.
void hasVideoChanged(bool hasVideo)
Emitted whenever the return value of hasVideo() changes.
Note that all constructors of this class are implicit, so that you can simply write.
Definition mediasource.h:63
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:05 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:05 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.