|
Sayonara Player
|
The StreamWriter class. This class is the interface between StreamDataSender and StreamServer. It watches the client socket and spreads data to its client. More...
#include <StreamWriter.h>
Public Types | |
| enum class | Type : uint8_t { Undefined , Standard , Invalid , Streaming } |
Signals | |
| void | sigNewConnection (const QString &ip) |
| void | sigDisconnected (StreamWriter *sw) |
Public Member Functions | |
| StreamWriter (PlayManager *playManager, RawAudioDataProvider *audioDataProvider, QTcpSocket *socket, const QString &ip) | |
| StreamWriter. | |
| QString | ip () const |
| get client ip address | |
| bool | sendPlaylist () |
| Send a m3u playlist (see StreamDataSender). | |
| bool | sendFavicon () |
| Send the http favicon (see StreamDataSender). | |
| bool | sendMetadata () |
| Send track information (see StreamDataSender). | |
| bool | sendBackground () |
| Send website background (see StreamDataSender). | |
| bool | sendHtml5 () |
| send a html5 website (see StreamDataSender) | |
| bool | sendHeader (bool reject) |
| send a appropriate header based on the type of request (see StreamDataSender) | |
| StreamHttpParser::HttpAnswer | parseMessage () |
| void | disconnect () |
| disconnect a client socket | |
| void | dismiss () |
| stop sending sound over the client socket | |
| void | writeAudioData (const QByteArray &data) override |
| new audio data has arrived and has to be forwarded to the socket | |
The StreamWriter class. This class is the interface between StreamDataSender and StreamServer. It watches the client socket and spreads data to its client.
| StreamWriter::StreamWriter | ( | PlayManager * | playManager, |
| RawAudioDataProvider * | audioDataProvider, | ||
| QTcpSocket * | socket, | ||
| const QString & | ip ) |
| socket | |
| ip | |
| md |
| QString StreamWriter::ip | ( | ) | const |
get client ip address
| bool StreamWriter::sendBackground | ( | ) |
Send website background (see StreamDataSender).
| bool StreamWriter::sendFavicon | ( | ) |
Send the http favicon (see StreamDataSender).
| bool StreamWriter::sendHeader | ( | bool | reject | ) |
send a appropriate header based on the type of request (see StreamDataSender)
| reject | if true, a reject header is sent. |
| bool StreamWriter::sendHtml5 | ( | ) |
send a html5 website (see StreamDataSender)
| bool StreamWriter::sendMetadata | ( | ) |
Send track information (see StreamDataSender).
| bool StreamWriter::sendPlaylist | ( | ) |
Send a m3u playlist (see StreamDataSender).
|
overridevirtual |
new audio data has arrived and has to be forwarded to the socket
| data | |
| size |
Implements Engine::RawAudioDataReceiver.