|
YAACC - UPNP Client and Server
|
What the card of a Sendspin server needs to show it and to control it (issue #325): the state of the group and of the controller role, what plays, and the commands. More...


Public Member Functions | |
| ControllerSession.Phase | phase () |
ControllerSession.Phase#ACTIVE while the controller role is active, the other values as far as they apply. | |
| ControllerSession.EndReason | endReason () |
| String | serverName () |
| String | serverId () |
| ControllerMessages.Group | group () |
The group of this client, or null before the first group/update. | |
| ControllerMessages.ControllerState | controller () |
| What the group can do and its volume, or null before the first state of the controller role. | |
| ControllerMessages.Metadata | metadata () |
| long | positionMs () |
| byte[] | artwork () |
| long | artworkVersion () |
| boolean | play () |
| boolean | pause () |
| boolean | stop () |
| boolean | next () |
| boolean | previous () |
| boolean | setVolume (int volume) |
| boolean | setMuted (boolean muted) |
| boolean | setRepeat (String repeat) |
| boolean | setShuffle (boolean shuffle) |
| boolean | switchGroup () |
| boolean | seek (long positionMs) |
| boolean | seekRelative (long offsetMs) |
| boolean | serverOffersSource () |
| True if the server said in its hello that it takes audio from a source (known after the hello). | |
| boolean | isSourceActive () |
| True while the source role is active on this connection: the server can ask for audio. | |
| SourceUplink | sourceUplink () |
| The uplink of the source role of this connection, or null if the connection was not given one. | |
What the card of a Sendspin server needs to show it and to control it (issue #325): the state of the group and of the controller role, what plays, and the commands.
Two sessions give it: the controller session of this phone (its own connection to the server) and the connection of this phone's player when the server uses it for the controller role too (a server such as Music Assistant keeps one connection per client, so the controller role has to ride on the connection of the player).
| byte[] de.yaacc.sendspin.client.ServerControl.artwork | ( | ) |
Implemented in de.yaacc.sendspin.client.ControllerSession.
| long de.yaacc.sendspin.client.ServerControl.artworkVersion | ( | ) |
Implemented in de.yaacc.sendspin.client.ControllerSession.
| ControllerMessages.ControllerState de.yaacc.sendspin.client.ServerControl.controller | ( | ) |
What the group can do and its volume, or null before the first state of the controller role.
Implemented in de.yaacc.sendspin.client.ControllerSession.
| ControllerMessages.Group de.yaacc.sendspin.client.ServerControl.group | ( | ) |
The group of this client, or null before the first group/update.
Implemented in de.yaacc.sendspin.client.ControllerSession.
| boolean de.yaacc.sendspin.client.ServerControl.isSourceActive | ( | ) |
True while the source role is active on this connection: the server can ask for audio.
Implemented in de.yaacc.sendspin.client.ControllerSession.
| ControllerMessages.Metadata de.yaacc.sendspin.client.ServerControl.metadata | ( | ) |
Implemented in de.yaacc.sendspin.client.ControllerSession.
| ControllerSession.Phase de.yaacc.sendspin.client.ServerControl.phase | ( | ) |
ControllerSession.Phase#ACTIVE while the controller role is active, the other values as far as they apply.
Implemented in de.yaacc.sendspin.client.ControllerSession.
Referenced by de.yaacc.sendspin.SendspinHub.offersSource().

| long de.yaacc.sendspin.client.ServerControl.positionMs | ( | ) |
Implemented in de.yaacc.sendspin.client.ControllerSession.
| boolean de.yaacc.sendspin.client.ServerControl.seek | ( | long | positionMs | ) |
Implemented in de.yaacc.sendspin.client.ControllerSession.
| boolean de.yaacc.sendspin.client.ServerControl.serverOffersSource | ( | ) |
True if the server said in its hello that it takes audio from a source (known after the hello).
Implemented in de.yaacc.sendspin.client.ControllerSession.
Referenced by de.yaacc.sendspin.SendspinHub.offersSource().

| boolean de.yaacc.sendspin.client.ServerControl.setRepeat | ( | String | repeat | ) |
Implemented in de.yaacc.sendspin.client.ControllerSession.
| SourceUplink de.yaacc.sendspin.client.ServerControl.sourceUplink | ( | ) |
The uplink of the source role of this connection, or null if the connection was not given one.
Implemented in de.yaacc.sendspin.client.ControllerSession.
| boolean de.yaacc.sendspin.client.ServerControl.switchGroup | ( | ) |
Implemented in de.yaacc.sendspin.client.ControllerSession.