\duncan3dc\Sonos\Cloud\InterfacesPlayerInterface

Represents an individual Sonos speaker.

Summary

Methods
Constants
getId()
getRoom()
getVolume()
setVolume()
adjustVolume()
isMuted()
mute()
unmute()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

getId()

getId() : string

Get the ID of this speaker.

Returns

string

getRoom()

getRoom() : string

Get the room name of this speaker.

Returns

string

getVolume()

getVolume() : integer

Get the current volume of this speaker.

Returns

integer —

The current volume between 0 and 100

setVolume()

setVolume(integer  $volume) : void

Adjust the volume of this speaker to a specific value.

Parameters

integer $volume

The amount to set the volume to between 0 and 100

adjustVolume()

adjustVolume(integer  $adjust) : void

Adjust the volume of this speaker by a relative amount.

Parameters

integer $adjust

The amount to adjust by between -100 and 100

isMuted()

isMuted() : boolean

Check if this speaker is currently muted.

Returns

boolean

mute()

mute() : void

Mute this speaker.

unmute()

unmute() : void

Unmute this speaker.