SetRate

class SetRate(val currentRate: Float, val perform: suspend (Float) -> Unit) : MediaPlayer.Controls.ControlType

A ControlType that provides and adjusts the rate of the current playback of a MediaPlayer

Constructors

Link copied to clipboard
constructor(currentRate: Float, perform: suspend (Float) -> Unit)

Properties

Link copied to clipboard

the rate at which playback is currently set

Link copied to clipboard
val perform: suspend (Float) -> Unit

action to change the rate of the current playback of the current MediaPlayer