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 resolution range
  • Set a fixed resolution
  • Benefits
Android playerPlayback

Set playback resolution

Was this page helpful?
Previous

Control rendition order

Next
Built with

Learn how to control video playback resolution in the FastPix Android Player.

The FastPix Android Player lets you set minimum, maximum, or fixed resolution values to control video quality during playback.

Set a resolution range

Define minimum and maximum resolution boundaries. The player switches between levels within this range based on network conditions:

1private fun startPlayback() {
2 player?.setFastPixMediaItem {
3 playbackId = "YOUR_PLAYBACK_ID"
4 minResolution = PlaybackResolution.LD_480
5 maxResolution = PlaybackResolution.FHD_1080
6 }
7}

Set a fixed resolution

Force playback at a specific resolution:

1private fun startPlayback() {
2 player?.setFastPixMediaItem {
3 playbackId = "YOUR_PLAYBACK_ID"
4 resolution = PlaybackResolution.HD_720
5 }
6}

Benefits

  • Min/max resolution sets quality boundaries to manage bandwidth and device performance.
  • Fixed resolution forces playback at a specific level (for example, always 720p).
  • Adaptive range lets the player switch between defined min–max levels based on network conditions, achieving smoother streaming.