Class: VolumeRequest

  • chrome.cast.media.VolumeRequest is a class used to set the volume of media playing on a cast device.

  • It's constructed using new VolumeRequest(volume) where volume is a chrome.cast.Volume object specifying the desired volume level.

  • The VolumeRequest object has two properties: customData for sending custom information to the receiver and volume which sets the new volume level or mute state.

  • The volume property within VolumeRequest requires at least either the level or muted attribute of the chrome.cast.Volume object to be defined.

Constructor

VolumeRequest

new VolumeRequest(volume)

Parameter

volume

chrome.cast.Volume

The new volume of the stream.

Value must not be null.

Properties

customData

nullable Object

Custom data for the receiver application.

volume

non-null chrome.cast.Volume

The new volume of the stream. At least one of level or muted must be set.