Joins the two announcements of one YAACC phone (issue #325, K14): its player (_sendspin._tcp) and its server (_sendspin-server._tcp) carry the same yaacc id, so that another phone shows one card for it.
More...
|
| static Endpoint | serverOf (SendspinDirectory.Entry player, List< SendspinDirectory.Entry > servers) |
| |
| static Endpoint | serverWithId (String serverId, List< SendspinDirectory.Entry > servers) |
| |
| static boolean | isMergedServer (SendspinDirectory.Entry server, List< SendspinDirectory.Entry > players) |
| |
Joins the two announcements of one YAACC phone (issue #325, K14): its player (_sendspin._tcp) and its server (_sendspin-server._tcp) carry the same yaacc id, so that another phone shows one card for it.
Only the id joins them: an address is no proof (a Music Assistant server and a Kodi player can share one). Pure.
◆ isMergedServer()
| static boolean de.yaacc.sendspin.discovery.YaaccPeers.isMergedServer |
( |
SendspinDirectory.Entry | server, |
|
|
List< SendspinDirectory.Entry > | players ) |
|
static |
- Returns
- true if a player of the same phone is listed: this server is shown inside that player's card, not as a card of its own
◆ serverOf()
| static Endpoint de.yaacc.sendspin.discovery.YaaccPeers.serverOf |
( |
SendspinDirectory.Entry | player, |
|
|
List< SendspinDirectory.Entry > | servers ) |
|
static |
◆ serverWithId()
| static Endpoint de.yaacc.sendspin.discovery.YaaccPeers.serverWithId |
( |
String | serverId, |
|
|
List< SendspinDirectory.Entry > | servers ) |
|
static |
- Returns
- the endpoint of the server whose id is
serverId (the id of the connection that streams to this phone; a YAACC server announces itself under it), or null. The platform may add " (2)" to a taken instance name; nothing else may follow the id.
Referenced by de.yaacc.sendspin.SendspinHub.controlServerOfOwnPlayer().
The documentation for this class was generated from the following file:
- /github/workspace/yaacc/src/main/java/de/yaacc/sendspin/discovery/YaaccPeers.java