AI-generated Key Takeaways
-
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)
wherevolume
is achrome.cast.Volume
object specifying the desired volume level. -
The
VolumeRequest
object has two properties:customData
for sending custom information to the receiver andvolume
which sets the new volume level or mute state. -
The
volume
property withinVolumeRequest
requires at least either thelevel
ormuted
attribute of thechrome.cast.Volume
object to be defined.
chrome.cast.media. VolumeRequest
A request to set the stream volume of the playing media.
Constructor
VolumeRequest
new VolumeRequest(volume)
Parameter |
|
---|---|
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.