Use setPlayerSettings
in the settings
namespace to set volumeMode
, volumeScalingFactor
, monoMode
, and wifiDisable
. See the playerSettings
type for details.
Endpoint
GET
1 |
/players/{PLAYERID}/settings/player |
Request Parameters
This command requires a playerId
to determine the target of the command. See Control for details.
Set player settings using the following parameters in the body. These are all optional.
Parameter | Type | Value |
---|---|---|
volumeMode |
enum | Set the following values:
|
volumeScalingFactor |
float | A scaling factor between 0.01 (1%) and 1.0 (100%) applied to compute the volume level. When set, this factor applies to each logical player. Only the primary player accepts this value. For example, the left speaker in a bonded pair or the main home theater speaker, such as the Playbar, in a 5.1 surround set.
|
monoMode |
Boolean | When true, enables mono mode on supported devices. Currently, only the Sonos Beam supports this setting in a supported setup, with no surrounds.
|
wifiDisable |
Boolean | When true, disables the wireless radio for the device if it detects a valid Ethernet carrier.
|
Response
Returns an empty body if successful.
If not successful, returns a globalError
.