YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.snapcast.server.StreamSpec Class Reference

A tcp stream source as the control port accepts it (issue #330, rule S4): tcp://<host>:<port>?name=<name> with the options of snapserver that make sense here. More...

Collaboration diagram for de.yaacc.snapcast.server.StreamSpec:
Collaboration graph

Public Member Functions

String raw ()
 
String name ()
 
int port ()
 
int sampleRate ()
 
int bitsPerSample ()
 
int channels ()
 
String codec ()
 

Static Public Member Functions

static StreamSpec parse (String uri)
 A stream address that names no codec gets PCM here; the server of the phone passes its own default (parse(String, String)).
 
static StreamSpec parse (String uri, String defaultCodec)
 

Static Public Attributes

static final int FIRST_PORT = 4953
 
static final int LAST_PORT = 4962
 
static final int MAX_NAME_LENGTH = 64
 

Detailed Description

A tcp stream source as the control port accepts it (issue #330, rule S4): tcp://<host>:<port>?name=<name> with the options of snapserver that make sense here.

Everything else is refused with -32602: other kinds of source (pipe, file, process, alsa), a path, a command or a script in a parameter, a port outside the feeder ports, client mode, a sample format the server cannot cut into chunks.

Member Function Documentation

◆ parse()

static StreamSpec de.yaacc.snapcast.server.StreamSpec.parse ( String uri,
String defaultCodec )
static
Parameters
defaultCodecthe codec of a stream address that names none (a snapserver takes FLAC)

The documentation for this class was generated from the following file: