One controller: its roles, the group it is on and what it was last told.
More...
|
|
List< String > | activeRoles () |
| | The roles to activate: those of controller, metadata, artwork and colour that the client listed (and the app serves).
|
| |
|
synchronized void | start () throws IOException |
| | After the activation: the group and the full state of each active role (the protocol asks for it promptly).
|
| |
|
void | clientState (java.util.List< de.yaacc.sendspin.session.ControllerMessages.ArtworkChannel > channels, boolean available) |
| | A client/state of the controller: the artwork channels it wants (null: it declared none) and whether it is available.
|
| |
|
void | command (final JSONObject payload) |
| | A client/command: carried out off the connection's thread; a malformed one is ignored, not fatal.
|
| |
|
synchronized void | refresh () |
| | Tells the controller what changed since it was told last.
|
| |
|
synchronized void | refreshColor () |
| | Tells the colours of the music if they changed enough since they were told (a new frame comes every 150 ms; a change of three steps of 255 is not seen, and a frame at least a second old is told again so that a late client has them).
|
| |
|
synchronized void | close () |
| |
One controller: its roles, the group it is on and what it was last told.
The documentation for this class was generated from the following file:
- /github/workspace/yaacc/src/main/java/de/yaacc/sendspin/control/ControllerHost.java