setVolume

abstract fun setVolume(@FloatRange(from = 0.0, to = 1.0) volume: Float)(source)

Sets the player volume, from 0 (silent) to 1 (full volume).