|
YAACC - UPNP Client and Server
|
The source list of the app's own OpenHome renderer with the Snapcast groups in it (task 12.5), decided without Android. More...

Classes | |
| class | Entry |
| One source of the list. | |
| class | GroupRef |
| A known group: its receiver id and its name (display text). | |
| enum | Kind |
| What a source is. More... | |
| class | Labels |
| The texts of the app that the list needs. | |
| class | SendspinRef |
| A known Sendspin player or group leader: its receiver id and its name (display text). | |
| class | Snapshot |
| The list a controller is told and the index of the current source. | |
| class | Target |
| What choosing a source means for the output setting. | |
Static Public Member Functions | |
| static Snapshot | build (SnapcastRendererOutput.Setting setting, List< GroupRef > groups, Labels labels) |
| The list for the setting and the groups known now. | |
| static Snapshot | build (SnapcastRendererOutput.Setting setting, List< GroupRef > groups, List< SendspinRef > sendspin, Labels labels) |
| The list for the setting, the Snapcast groups and the Sendspin players and groups known now. | |
| static String | sendspinTokenOf (String receiverId) |
The system name of a Sendspin source: sendspin- and 16 hexadecimal characters of a hash of the receiver id. | |
| static String | tokenOf (String receiverId) |
The token a controller can use as the system name of a group: snapcast- and 16 hexadecimal characters of a hash of the receiver id. | |
The source list of the app's own OpenHome renderer with the Snapcast groups in it (task 12.5), decided without Android.
An OpenHome controller sees the renderer's Product service: a list of sources and the index of the current one. Here the list is this device (the one source of before, with the same names) followed by one source per known Snapcast group, and the current one is what the output setting of the renderer says (Group 9, SnapcastRendererOutput): the list is only another way to read and to write that one setting, never a second truth.
SnapcastDisplayText); an empty one gets the label; equal names are told apart by a number (Kitchen, Kitchen (2)). snapcast:<server key>:<group id>) holds the address of the server, so it is never in a text a controller sees. A source carries it only in the mapping of this class; the controller gets the name and an opaque SystemName token (tokenOf, a hash that stays the same for the same group while the list changes). Playlist (a controller can queue on all of them). Pure Java. Immutable results.
|
static |
The list for the setting and the groups known now.
| setting | the renderer's output setting; null counts as this device |
| groups | the known groups; null for none. Entries with an id that is not canonical, or that repeat one, are left out |
| labels | the texts of the app; null only when no group is listed and none is chosen |
Referenced by de.yaacc.snapcast.SnapcastRendererSources.build(), and de.yaacc.upnp.server.openhome.RendererOutputSources.snapshot().


|
static |
The list for the setting, the Snapcast groups and the Sendspin players and groups known now.
This device is first, then the Snapcast groups, then the Sendspin sources (named Sendspin: <name>, ordered by name, at most {@value MAX_SENDSPIN}; the chosen one is always listed), then a placeholder for a chosen group or Sendspin target that is not known now.

|
static |
The token a controller can use as the system name of a group: snapcast- and 16 hexadecimal characters of a hash of the receiver id.
It is the same for the same group whatever else is in the list, and tells nothing about the server.
Referenced by de.yaacc.snapcast.SnapcastRendererSources.build(), and de.yaacc.snapcast.SnapcastRendererSources.sendspinTokenOf().
