|
|
ServerKey | getServerKey () |
| |
|
String | getGroupId () |
| |
|
boolean | isIdle () |
| | True for the placeholder card of a YAACC server that no client has connected to: nothing to play to or to control, see SnapcastIdleGroup.
|
| |
|
String | getStreamId () |
| | The stream the group plays when the snapshot was taken (an id of the server: display text).
|
| |
|
int | getClientCount () |
| |
|
boolean | isOffline () |
| | True while the server's control connection is down; the group is the last one known.
|
| |
| String | getDisplayString () |
| |
| DeviceDetails | getDetails () |
| |
| Service[] | getServices () |
| |
| Device[] | getEmbeddedDevices () |
| |
| Device | getRoot () |
| |
| Device | findDevice (UDN udn) |
| |
| Resource[] | discoverResources (Namespace namespace) |
| |
|
Device | newInstance (UDN arg0, UDAVersion arg1, DeviceType arg2, DeviceDetails arg3, org.fourthline.cling.model.meta.Icon[] arg4, Service[] arg5, List arg6) throws ValidationException |
| |
|
Service | newInstance (ServiceType serviceType, ServiceId serviceId, URI uri, URI uri1, URI uri2, Action[] actions, StateVariable[] stateVariables) throws ValidationException |
| |
|
Device[] | toDeviceArray (Collection collection) |
| |
| Service[] | newServiceArray (int i) |
| |
|
Service[] | toServiceArray (Collection collection) |
| |
| String | toString () |
| | No address or id in the text: counts only.
|
| |
|
| Device (DI identity) throws ValidationException |
| |
|
| Device (DI identity, DeviceType type, DeviceDetails details, Icon[] icons, S[] services) throws ValidationException |
| |
|
| Device (DI identity, DeviceType type, DeviceDetails details, Icon[] icons, S[] services, D[] embeddedDevices) throws ValidationException |
| |
|
| Device (DI identity, UDAVersion version, DeviceType type, DeviceDetails details, Icon[] icons, S[] services, D[] embeddedDevices) throws ValidationException |
| |
|
DI | getIdentity () |
| |
|
UDAVersion | getVersion () |
| |
|
DeviceType | getType () |
| |
|
DeviceDetails | getDetails (RemoteClientInfo info) |
| |
|
Icon[] | getIcons () |
| |
|
boolean | hasIcons () |
| |
|
boolean | hasServices () |
| |
|
boolean | hasEmbeddedDevices () |
| |
|
D | getParentDevice () |
| |
|
boolean | isRoot () |
| |
|
D[] | findEmbeddedDevices () |
| |
|
D[] | findDevices (DeviceType deviceType) |
| |
|
D[] | findDevices (ServiceType serviceType) |
| |
|
Icon[] | findIcons () |
| |
|
S[] | findServices () |
| |
|
S[] | findServices (ServiceType serviceType) |
| |
|
S | findService (ServiceId serviceId) |
| |
|
S | findService (ServiceType serviceType) |
| |
|
ServiceType[] | findServiceTypes () |
| |
|
boolean | isFullyHydrated () |
| |
| List< ValidationError > | validate () |
| |
|
boolean | equals (Object o) |
| |
|
int | hashCode () |
| |
|
abstract D | newInstance (UDN udn, UDAVersion version, DeviceType type, DeviceDetails details, Icon[] icons, S[] services, List< D > embeddedDevices) throws ValidationException |
| |
|
abstract S | newInstance (ServiceType serviceType, ServiceId serviceId, URI descriptorURI, URI controlURI, URI eventSubscriptionURI, Action< S >[] actions, StateVariable< S >[] stateVariables) throws ValidationException |
| |
|
abstract D[] | toDeviceArray (Collection< D > col) |
| |
|
abstract S[] | toServiceArray (Collection< S > col) |
| |
A Snapcast group as a receiver of the receiver lists: a synthetic Cling Device that is never registered with Cling's registry (so it is never advertised and never searched for), modeled on UpnpClient.LocalDummyDevice.
It has no services (the code that looks for AVTransport, RenderingControl or OpenHome services finds none and treats it like the phone's own dummy device), and no root. It is an immutable snapshot of the group at one moment; two snapshots of one group are equal (the identity is the id), so a renamed group is the same receiver.
The id is snapcast:<server key>:<group id>. The server key is the control endpoint and contains colons (host:port, an IPv6 literal in brackets with colons inside), so the id is parsed from the right: the group id is what follows the last colon, and the rest after the prefix must be a canonical server key (ServerKey#parse). A group id from the server is accepted only when it is 1 to 64 characters of letters, digits, _ and - (the ids of a snapserver are UUIDs); a group with another id is not made into a device, so a hostile server can not forge an ambiguous id.
The name is the group's name, else the first member's name (its set name, else its host name; never its id, which is a MAC address), else the generic label, cut at 64 characters, plus " (Snapcast)" (the product name), a marker when the server is offline, and @<server>: the name of the server, so that the same client on two servers is two different entries of the lists. Names come from the server: they are display text and are cleaned with SnapcastDisplayText before they get here; they are never an identity.