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

The settings of the built-in Snapcast server (issue #330). More...

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

Classes

interface  BooleanSource
 Reads a boolean preference. More...
 

Static Public Member Functions

static boolean isEnabled (BooleanSource source)
 
static int bufferMs (int requested)
 The buffer the clients are told: the value if it is in the range of 200 to 5000 ms, else the default for a value above and the minimum below.
 
static String serviceName (String phoneName)
 The name of the announcement: the network name of the YAACC server from the settings (cleaned, at most 63 bytes), else "YAACC": the same rule as the name of the Sendspin client.
 

Static Public Attributes

static final String KEY_ENABLED = "settings_snapcast_server"
 The key of the switch (the name of the string resource of the preference screen).
 
static final boolean DEFAULT_ENABLED = false
 
static final int DEFAULT_BUFFER_MS = 1000
 
static final String DEFAULT_SERVICE_NAME = "YAACC"
 The announced name when the server has no name in the settings.
 

Detailed Description

The settings of the built-in Snapcast server (issue #330).

The switch is off by default and a value that can not be read counts as off (rule S1): the server listens on the network, so it starts only when the user chose it.


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