YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.sendspin.ControllerYield Class Reference

When the controller session of this phone must not connect to a server (issue #325). More...

Collaboration diagram for de.yaacc.sendspin.ControllerYield:
Collaboration graph

Static Public Member Functions

static boolean shouldYield (String serverId, boolean yaaccServer, Collection< String > playerServers)
 

Detailed Description

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.

Member Function Documentation

◆ shouldYield()

static boolean de.yaacc.sendspin.ControllerYield.shouldYield ( String serverId,
boolean yaaccServer,
Collection< String > playerServers )
static
Parameters
serverIdthe id the server gave in its server/init
yaaccServertrue if the server is a YAACC server (it announces the YAACC id)
playerServersthe ids of the servers that are connected to this phone's player

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