For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
StatusSupportDiscussionsLog inSign Up
Docs HomeAPI ReferenceVideo on DemandAI FeaturesLive StreamingVideo PlayerVideo DataCloud PlayoutRecipes
Docs HomeAPI ReferenceVideo on DemandAI FeaturesLive StreamingVideo PlayerVideo DataCloud PlayoutRecipes
  • Player SDKs
    • Introduction
  • Web player
    • Install the FastPix web player
    • Play uploaded videos
    • Handle playback errors
  • Android player
    • Install FastPix Android player
    • Set up the player
    • Play uploaded videos
    • Handle playback errors
      • Control video playback
      • Adjust volume and mute
      • Control playback speed
      • Set playback resolution
      • Control rendition order
      • Listen to playback events
  • iOS player
    • Install FastPix iOS player
    • Play uploaded videos
    • Handle playback errors
  • Flutter player
    • Install FastPix Flutter player
    • Play uploaded videos
    • Handle playback errors
LogoLogo
StatusSupportDiscussionsLog inSign Up
On this page
  • Set a specific speed
  • Step through speeds
  • Get available speeds
  • Listen for speed changes
Android playerPlayback

Control playback speed

Was this page helpful?
Previous

Set playback resolution

Next
Built with

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}