\duncan3dc\Sonos\InterfacesControllerStateInterface

Representation of the current state of a controller.

Summary

Methods
Constants
getState()
getTrack()
getPosition()
getRepeat()
getShuffle()
getCrossfade()
getSpeakers()
getTracks()
getStream()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

getState()

getState() : integer

Get the playing mode of the controller.

Returns

integer —

One of the ControllerInterface::STATE_ constants

getTrack()

getTrack() : integer

Get the number of the active track in the queue

Returns

integer —

The zero-based number of the track in the queue

getRepeat()

getRepeat() : boolean

Check if repeat is currently active.

Returns

boolean

getShuffle()

getShuffle() : boolean

Check if shuffle is currently active.

Returns

boolean

getCrossfade()

getCrossfade() : boolean

Check if crossfade is currently active.

Returns

boolean

getSpeakers()

getSpeakers() : \duncan3dc\Sonos\Interfaces\array<string,int>

Each speaker's UUID and its volume.

Returns

\duncan3dc\Sonos\Interfaces\array

getStream()

getStream() 

Get the stream this controller is using.