$state
$state : integer
Representation of the current state of a controller.
$position : \duncan3dc\Sonos\Interfaces\Utils\TimeInterface
$tracks : array<mixed,\duncan3dc\Sonos\Interfaces\TrackInterface>
$stream : \duncan3dc\Sonos\Tracks\Stream
__construct(\duncan3dc\Sonos\Interfaces\ControllerInterface $controller)
Create a ControllerState object.
\duncan3dc\Sonos\Interfaces\ControllerInterface | $controller | The Controller to grab the state of |
getPosition() : \duncan3dc\Sonos\Interfaces\Utils\TimeInterface
Get the position of the currently active track.
getTracks() : array<mixed,\duncan3dc\Sonos\Interfaces\TrackInterface>
Get the tracks that are in the queue.
applyState(\duncan3dc\Sonos\Interfaces\ControllerInterface $controller) : $this
Get the current playing attributes (stream/position/etc).
\duncan3dc\Sonos\Interfaces\ControllerInterface | $controller | The Controller to grab the state of |
applyMode(\duncan3dc\Sonos\Interfaces\ControllerInterface $controller) : $this
Get the current playing mode (repeat/shuffle/etc).
\duncan3dc\Sonos\Interfaces\ControllerInterface | $controller | The Controller to grab the state of |
applyVolume(\duncan3dc\Sonos\Interfaces\ControllerInterface $controller) : $this
Get the current volume of all the speakers in this group.
\duncan3dc\Sonos\Interfaces\ControllerInterface | $controller | The Controller to grab the state of |
applyTracks(\duncan3dc\Sonos\Interfaces\ControllerInterface $controller) : $this
Get the current tracks in the queue.
\duncan3dc\Sonos\Interfaces\ControllerInterface | $controller | The Controller to grab the state of |