Class: Volume

  • Represents the volume settings for a device or media stream.

  • Includes properties for the volume level, mute status, control type, and step intervals.

  • Can be instantiated with optional level and muted parameters.

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.

Create a Mobile Website
View Site in Mobile | Classic
Share by: