setVolume

abstract fun setVolume(volume: Float)

Sets the volume of the audio, which can be set between 0.0 and 1.0.

Parameters

volume

The volume value to set, which must be between 0.0 and 1.0.

Throws

IllegalArgumentException

if the volume value is not between 0.0 and