YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.sendspin.client.ServerControl Interface Reference

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...

Inheritance diagram for de.yaacc.sendspin.client.ServerControl:
Inheritance graph
Collaboration diagram for de.yaacc.sendspin.client.ServerControl:
Collaboration graph

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.
 

Detailed Description

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).

Member Function Documentation

◆ artwork()

byte[] de.yaacc.sendspin.client.ServerControl.artwork ( )

◆ artworkVersion()

long de.yaacc.sendspin.client.ServerControl.artworkVersion ( )

◆ controller()

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.

◆ group()

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.

◆ isSourceActive()

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.

◆ metadata()

ControllerMessages.Metadata de.yaacc.sendspin.client.ServerControl.metadata ( )

◆ phase()

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().

Here is the caller graph for this function:

◆ positionMs()

long de.yaacc.sendspin.client.ServerControl.positionMs ( )

◆ seek()

boolean de.yaacc.sendspin.client.ServerControl.seek ( long positionMs)

◆ serverOffersSource()

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().

Here is the caller graph for this function:

◆ setRepeat()

boolean de.yaacc.sendspin.client.ServerControl.setRepeat ( String repeat)

◆ sourceUplink()

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.

◆ switchGroup()

boolean de.yaacc.sendspin.client.ServerControl.switchGroup ( )

The documentation for this interface was generated from the following file: