Set playback resolution

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.