AI-generated Key Takeaways
-
VolumeEventData
provides information about receiver volume changes, including current volume level and mute state. -
It is triggered when the receiver's volume or mute state is changed and includes properties like
volume
andisMute
to access the updated values. -
The
volume
property represents the current volume level, ranging from 0 to 1, whileisMute
indicates whether the device is muted.
cast.framework. VolumeEventData
Receiver volume or mute changed event data.
Constructor
VolumeEventData
new VolumeEventData(volume, isMute)
Parameter |
|
---|---|
volume |
number Current volume in range 0 to 1 (1 is max volume). Value may be null. |
isMute |
boolean True if device is muted. Value may be null. |
Properties
isMute
nullable boolean
True if device is muted.
volume
nullable number
Current volume in range 0 to 1 (1 is max volume).