![]() |
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 | Type : uint8_t { Undefined, Standard, Invalid, Streaming } |
Signals | |
| void | sigNewConnection (const QString &ip) |
| void | sigDisconnected (StreamWriter *sw) |
Public Member Functions | |
| StreamWriter (QTcpSocket *socket, const QString &ip, const MetaData &md) | |
| StreamWriter. More... | |
| QString | ip () const |
| get client ip address More... | |
| void | changeTrack (const MetaData &md) |
| send new icy data to clients, and send new metadata to remote controls. More... | |
| bool | sendPlaylist () |
| Send a m3u playlist (see StreamDataSender) More... | |
| bool | sendFavicon () |
| Send the http favicon (see StreamDataSender) More... | |
| bool | sendMetadata () |
| Send track information (see StreamDataSender) More... | |
| bool | sendBackground () |
| Send website background (see StreamDataSender) More... | |
| bool | sendHtml5 () |
| send a html5 website (see StreamDataSender) More... | |
| bool | sendHeader (bool reject) |
| send a appropriate header based on the type of request (see StreamDataSender) More... | |
| 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 More... | |
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 | ( | QTcpSocket * | socket, |
| const QString & | ip, | ||
| const MetaData & | md | ||
| ) |
| socket | |
| ip | |
| md |
| void StreamWriter::changeTrack | ( | const MetaData & | md | ) |
send new icy data to clients, and send new metadata to remote controls.
| md | Track structure |
| 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::RawSoundReceiverInterface.
1.8.15