|
YAACC - UPNP Client and Server
|
The few calls on the control port of the server that the client makes: read the status (to show which group and stream the phone is in) and, on the owner's request, move the phone's group to another stream. More...

Classes | |
| enum | MoveResult |
| What became of a request to move the group of this client. More... | |
Static Public Member Functions | |
| static ServerSays | fetch (InetAddress address, String clientId) |
Server.GetStatus, read for this client id; ServerSays#unreachable when the call fails. | |
| static MoveResult | moveGroup (InetAddress address, String clientId, String shownGroupId, String streamId) |
Group.SetStream: the group of this client plays this stream. | |
Static Public Attributes | |
| static final int | CONTROL_PORT = SocketTransport.DEFAULT_PORT |
| The control port of Snapcast. | |
The few calls on the control port of the server that the client makes: read the status (to show which group and stream the phone is in) and, on the owner's request, move the phone's group to another stream.
Each call opens its own short connection to the address the session resolved (nothing is looked up), runs one call with the usual limits of the control library, and closes. Blocking: never call it on the main thread.
|
static |
Group.SetStream: the group of this client plays this stream.
Changes the server: only on the owner's tap, with a confirmation. The status is read again first and the move is made only when this client is still in the group that was shown (the answer on the screen can be 30 s old, and a group that was dissolved or formed anew meanwhile would move whoever is in it now). One connection, two calls.
| shownGroupId | the group id of the ServerSays on the screen (raw) |
| streamId | the raw id of the chosen stream |
Referenced by de.yaacc.snapcast.client.ServerControl.moveGroup().

