Device player.d.ts#L38
An object containing the details of a device.
Properties:
Name | Type | Description |
---|---|---|
id | "null" | string | The device ID. |
is_active | boolean | If this device is the currently active device. |
is_private_session | boolean | If this device is currently in a private session. |
is_restricted | boolean | Whether controlling this device is restricted. At present if this is “true” then no Web API commands will be accepted by this device. |
name | string | The name of the device. |
type | "computer" | "smartphone" | "speaker" | The device type. |
volume_percent | number | The current volume in percent. OPTIONAL |