setVolume

actual fun setVolume(volume: Float)
expect fun setVolume(volume: Float)

Adjusts the volume level of the player.

Parameters

volume

The desired volume level as a floating-point value, where 0.0 represents silence and 1.0 represents the maximum audio volume for the player instance.

Note: this method has no effect on the system/device volume, it only targets the player instance.

actual fun setVolume(volume: Float)
actual fun setVolume(volume: Float)
actual fun setVolume(volume: Float)