setVolume

fun setVolume(@FloatRange(from = 0.0, to = 10.0, fromInclusive = true, toInclusive = true) value: Double)

Sets the volume of this HMSRemoteAudioTrack on the underlying MediaSource. Volume is a gain value in the range 0 to 10.

Parameters

value

new volume of the track, 0.0 -> Silence 1.0 -> Full Original Volume 1.0+ -> Further amplification. Note: Turning this too high might result in distorted sound.