When the controller session of this phone must not connect to a server (issue #325).
More...
|
| static boolean | shouldYield (String serverId, boolean yaaccServer, Collection< String > playerServers) |
| |
When the controller session of this phone must not connect to a server (issue #325).
The player and the controller session share one identity, so a server sees one client with two connections. YAACC's own server keeps a connection for each address and takes both; a server such as Music Assistant (aiosendspin) keeps one connection for a client id and replaces the older one when a second comes ("Replacing existing connection for the same device"), so a controller session that connects to the server that streams to the player cuts the stream of the player. The controller session yields to the player there. Pure.
◆ shouldYield()
| static boolean de.yaacc.sendspin.ControllerYield.shouldYield |
( |
String | serverId, |
|
|
boolean | yaaccServer, |
|
|
Collection< String > | playerServers ) |
|
static |
- Parameters
-
| serverId | the id the server gave in its server/init |
| yaaccServer | true if the server is a YAACC server (it announces the YAACC id) |
| playerServers | the ids of the servers that are connected to this phone's player |
The documentation for this class was generated from the following file:
- /github/workspace/yaacc/src/main/java/de/yaacc/sendspin/ControllerYield.java