One client on the stream port of the built-in server (issue #330): the Hello, then settings, the codec header and chunks out, Time and ClientInfo in.
More...
|
| | StreamClientSession (InputStream in, OutputStream out, Closeable socket, String ip, Host host, MicroClock clock, FrameReader.ReadTimeout readTimeout) |
| |
|
String | clientId () |
| | The id the server gives this client, after its Hello; null before.
|
| |
|
boolean | isClosed () |
| |
|
void | sendSettings (ServerSettingsMessage settings) |
| | Sends the settings of the client (volume, mute, latency, buffer).
|
| |
|
void | setStream (String newStreamId, CodecHeaderMessage header) |
| | The client now plays this stream: its codec header goes first and chunks of that stream follow (none while header is null, a client in a group with no stream).
|
| |
|
String | streamId () |
| |
|
void | offerChunk (String forStream, long timestampMicros, byte[] payload) |
| | A chunk of a stream: queued if the client plays that stream; a client that falls too far behind is dropped.
|
| |
|
void | run () |
| |
|
void | close () |
| |
One client on the stream port of the built-in server (issue #330): the Hello, then settings, the codec header and chunks out, Time and ClientInfo in.
One reader thread (this runnable) and one writer thread; every other thread only queues messages, so a client that stops reading holds nobody: its queue has a size cap, and a client that reaches it is dropped (rule S3). Frames above 64 KiB, a Hello that does not come in time, too many frames per second or too many strange frames end the session.