Class: Volume

  • Represents the current volume level and mute status of a media session stream.

  • Provides a level property (ranging from 0.0 to 1.0) to indicate the stream's volume.

  • Includes a muted property (boolean) to indicate whether the stream is muted.

Constructor

Volume

new Volume()

Properties

level

(number or undefined)

A value that represents the current stream volume level, ranging from 0.0 to 1.0. For example a value of 0.5 would reflect the volume at half of its maximum.

muted

(boolean or undefined)

true indicates that the stream is muted.