$uri
$uri : string
Representation of the current state of a controller.
$stream : \duncan3dc\Sonos\Tracks\Stream|null
$duration : \duncan3dc\Sonos\Interfaces\Utils\TimeInterface
$position : \duncan3dc\Sonos\Interfaces\Utils\TimeInterface
createFromXml(\duncan3dc\DomParser\XmlElement $xml, \duncan3dc\Sonos\Interfaces\ControllerInterface $controller) : \duncan3dc\Sonos\Interfaces\StateInterface
Update the track properties using an xml element.
\duncan3dc\DomParser\XmlElement | $xml | The xml element representing the track meta data. |
\duncan3dc\Sonos\Interfaces\ControllerInterface | $controller | A controller instance on the playlist's network |
setStream(\duncan3dc\Sonos\Tracks\Stream $stream) : \duncan3dc\Sonos\Interfaces\StateInterface
Set the stream object in use.
\duncan3dc\Sonos\Tracks\Stream | $stream | The stream |
getStream() : \duncan3dc\Sonos\Interfaces\TrackInterface|null
Get the stream object in use (or null if we are not on a stream).
setDuration(\duncan3dc\Sonos\Interfaces\Utils\TimeInterface $duration) : \duncan3dc\Sonos\Interfaces\StateInterface
Set the duration of the currently active track.
\duncan3dc\Sonos\Interfaces\Utils\TimeInterface | $duration | The duration |
getDuration() : \duncan3dc\Sonos\Interfaces\Utils\TimeInterface
Get the duration of the currently active track.
setPosition(\duncan3dc\Sonos\Interfaces\Utils\TimeInterface $position) : \duncan3dc\Sonos\Interfaces\StateInterface
Set the position of the currently active track.
\duncan3dc\Sonos\Interfaces\Utils\TimeInterface | $position | The position |
getPosition() : \duncan3dc\Sonos\Interfaces\Utils\TimeInterface
Get the position of the currently active track.