Control playback speed

Learn how to adjust video playback speed in the FastPix Android Player.

The SDK supports playback speeds from 0.25x to 2.0x.

Set a specific speed

1player.setPlaybackSpeed(1.5f) // Picks the closest supported speed if needed
2val speed = player.getPlaybackSpeed()

Step through speeds

1player.fast() // Jump to next speed (wraps around)
2player.slow() // Jump to previous speed (wraps around)
3player.normalize() // Reset to 1.0x

Get available speeds

1val all = player.getAvailablePlaybackSpeeds() // FloatArray of supported speeds

Listen for speed changes

1override fun onPlaybackRateChanged(rate: Float) {
2 // Playback speed updated
3}