Phonon
abstractmediastream.h
43 * Implement this class to provide a custom data stream to the backend. The class supports both, the
void writeData(const QByteArray &data)
Sends the media data to the backend for decoding.
Definition abstractmediastream.cpp:89
bool streamSeekable() const
Returns whether your data stream is set as seekable.
Definition abstractmediastream.cpp:71
void endOfData()
Tells the backend that the media data stream is at its end.
Definition abstractmediastream.cpp:103
void setStreamSeekable(bool)
Sets whether your data stream is seekable.
Definition abstractmediastream.cpp:76
virtual Q_INVOKABLE void seekStream(qint64 offset)
Reimplement this function if your stream is seekable.
Definition abstractmediastream.cpp:130
virtual Q_INVOKABLE void enoughData()
Reimplement this function to be notified when the backend has enough data and your stream object may ...
Definition abstractmediastream.cpp:126
qint64 streamSize() const
Returns the stream size that was set with setStreamSize.
Definition abstractmediastream.cpp:53
AbstractMediaStream(QObject *parent=nullptr)
Constructs an AbstractMediaStream object with a parent.
Definition abstractmediastream.cpp:35
void setStreamSize(qint64)
Sets the size of the stream in number of bytes.
Definition abstractmediastream.cpp:58
virtual Q_INVOKABLE void reset()=0
Reimplement this function to reset the stream.
void error(Phonon::ErrorType errorType, const QString &errorString)
If an I/O error occurs you should call this function to make MediaObject go into ErrorState.
Definition abstractmediastream.cpp:115
virtual Q_INVOKABLE void needData()=0
Reimplement this function to be notified when the backend needs data.
QObject(QObject *parent)
Q_INVOKABLEQ_INVOKABLE
Q_OBJECTQ_OBJECT
QObject * parent() const const
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.