Class: VolumeRequest

  • VolumeRequest is a class used to set the stream volume of playing media.

  • The constructor VolumeRequest(volume) requires a non-null chrome.cast.Volume object as a parameter to define the new stream volume.

  • The volume property is a non-null chrome.cast.Volume object representing the new stream volume, and at least one of level or muted within it must be set.

  • The customData property is a nullable Object for including custom data for the receiver application.

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.