Class: Volume

  • chrome.cast.Volume represents the volume of a device or media stream, providing control over level and mute status.

  • It can be initialized with level (0.0-1.0) and muted (boolean) values, allowing for custom volume settings.

  • Key properties include controlType, indicating the type of volume control, level for current volume, muted for mute status, and stepInterval for allowed volume adjustments.

Constructor

Volume

new Volume(level, muted)

Parameter

level

Optional

number

The volume level.

Value may be null.

muted

Optional

boolean

The mute status.

Value may be null.

Properties

controlType

non-null chrome.cast.VolumeControlType

The type of volume control that is available.

level

nullable number

The current volume level as a value between 0.0 and 1.0. 1.0 is the maximum volume possible on the receiver or stream.

muted

nullable boolean

Whether the receiver is muted, independent of the volume level.

stepInterval

number

The allowed steps for changing volume.