Phonon
streaminterface.h
Note that all constructors of this class are implicit, so that you can simply write.
Definition mediasource.h:63
Backend interface to handle media streams (AbstractMediaStream).
Definition streaminterface.h:56
void seekStream(qint64 seekTo)
If the stream is seekable, calling this function will make the next call to writeData pass data that ...
Definition streaminterface.cpp:93
void connectToSource(const MediaSource &mediaSource)
Call this function from the constructor of your StreamInterface implementation (or as soon as you get...
Definition streaminterface.cpp:49
virtual void writeData(const QByteArray &data)=0
Called by the application to send a chunk of (encoded) media data.
virtual void endOfData()=0
Called when no more media data is available and writeData will not be called anymore.
void needData()
Call this function to tell the AbstractMediaStream that you need more data.
Definition streaminterface.cpp:78
virtual void setStreamSeekable(bool s)=0
Tells whether the stream is seekable.
void enoughData()
Call this function to tell the AbstractMediaStream that you have enough data in your buffer and that ...
Definition streaminterface.cpp:85
virtual void setStreamSize(qint64 newSize)=0
Called at the start of the stream to tell how many bytes will be sent through writeData (if no seeks ...
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.