PlaybackSpeedConfig
data class PlaybackSpeedConfig(val enableSpeedControl: Boolean = true, val defaultSpeed: Float = 1.0f, val allowedSpeeds: List<Float>? = null, val showSpeedBadge: Boolean = true, val rememberLastSpeed: Boolean = true)(source)
Playback speed behaviour for net.bunny.bunnystreamplayer.ui.BunnyStreamPlayer. Pass an instance to net.bunny.bunnystreamplayer.ui.BunnyStreamPlayer.setPlaybackSpeedConfig before calling playVideo. Without it the player offers the speed options configured for the library in the Bunny dashboard.
Constructors
Properties
Link copied to clipboard
speeds offered in the menu. Null keeps the list configured in the Bunny dashboard.
Link copied to clipboard
speed applied when playback starts, for example 1.5f.
Link copied to clipboard
show the speed option in the settings menu. Set to false to pin playback at 1x and hide the control.
Link copied to clipboard
store the last chosen speed on the device and reapply it to the next playback.
Link copied to clipboard
show a small "1.5x" badge over the player while the speed is not 1x.