|
YAACC - UPNP Client and Server
|
Where UpnpClient gets the Snapcast groups from: the receivers that are not in Cling's registry.
More...


Public Member Functions | |
| List< SnapcastGroupDevice > | groups () |
| The groups of the servers that are listed, as of the last status of each server. | |
| SnapcastGroupDevice | findGroup (String receiverId) |
| void | wake (Collection< String > receiverIds) |
Selected receivers are missing: connect to the listed servers that hold the Snapcast ones among receiverIds (and to no other), so that their groups are known soon. | |
| boolean | isPending (String receiverId) |
| True for the id of a group whose server is listed but has not delivered its status yet (a cold start, or a connection that is still coming up): the group is not known, but it is not gone either. | |
| void | selectionChanged (Collection< String > receiverIds) |
| The stored selection changed (the ids of all selected receivers, of any kind): remember the servers of the selected groups across a restart, forget the others. | |
Public Attributes | |
| SnapcastGroupSource | NONE |
| No groups; the default of a client that has no hub. | |
Where UpnpClient gets the Snapcast groups from: the receivers that are not in Cling's registry.
Kept as a small interface so that the client works (and is tested) without any Snapcast machinery.
| SnapcastGroupDevice de.yaacc.snapcast.SnapcastGroupSource.findGroup | ( | String | receiverId | ) |
snapcast:...), or null if it is not known (any more) Implemented in de.yaacc.snapcast.SnapcastHub, and de.yaacc.snapcast.SnapcastReceivers.
Referenced by de.yaacc.upnp.UpnpClient.getDevice().

| List< SnapcastGroupDevice > de.yaacc.snapcast.SnapcastGroupSource.groups | ( | ) |
The groups of the servers that are listed, as of the last status of each server.
Cheap: no network.
Implemented in de.yaacc.snapcast.SnapcastHub, and de.yaacc.snapcast.SnapcastReceivers.
Referenced by de.yaacc.upnp.UpnpClient.getDevicesProvidingAvTransportService().

| boolean de.yaacc.snapcast.SnapcastGroupSource.isPending | ( | String | receiverId | ) |
True for the id of a group whose server is listed but has not delivered its status yet (a cold start, or a connection that is still coming up): the group is not known, but it is not gone either.
The caller keeps such an id in a stored selection instead of dropping it. False for a group that is known, for a server that is not listed (any more), for a server that answered without the group, and for anything that is not a group id.
Implemented in de.yaacc.snapcast.SnapcastHub, and de.yaacc.snapcast.SnapcastReceivers.
Referenced by de.yaacc.upnp.UpnpClient.getReceiverDevices().

| void de.yaacc.snapcast.SnapcastGroupSource.selectionChanged | ( | Collection< String > | receiverIds | ) |
The stored selection changed (the ids of all selected receivers, of any kind): remember the servers of the selected groups across a restart, forget the others.
Does not block on the network.
Implemented in de.yaacc.snapcast.SnapcastHub, and de.yaacc.snapcast.SnapcastReceivers.
Referenced by de.yaacc.upnp.UpnpClient.setReceiverDeviceIds().

| void de.yaacc.snapcast.SnapcastGroupSource.wake | ( | Collection< String > | receiverIds | ) |
Selected receivers are missing: connect to the listed servers that hold the Snapcast ones among receiverIds (and to no other), so that their groups are known soon.
Does not block.
Implemented in de.yaacc.snapcast.SnapcastHub, and de.yaacc.snapcast.SnapcastReceivers.
Referenced by de.yaacc.upnp.UpnpClient.awaitReceiverDevices().

| SnapcastGroupSource de.yaacc.snapcast.SnapcastGroupSource.NONE |
No groups; the default of a client that has no hub.