Set playback resolution
Learn how to control video playback resolution and adaptive bitrate streaming in the FastPix iOS Player.
The FastPix iOS Player gives you flexibility to customize video playback resolution. You can set minimum, maximum, or specific resolution values, and let users choose their preferred quality level. The SDK also supports adaptive bitrate streaming (ABR) for automatic quality adjustments based on network conditions.
Set a minimum resolution
Ensure the player only streams video at or above a specified resolution:
Set a maximum resolution
Ensure the player only streams video up to a specified resolution:
Set a specific resolution
Lock playback to a single resolution:
Set a resolution range
Define both a minimum and maximum resolution to stream video within a specific range:
Use adaptive bitrate streaming (ABR)
ABR automatically adjusts video quality based on network conditions, reducing buffering and improving playback stability. The SDK also supports manual resolution switching, letting users select specific quality levels during playback.
Set up the quality manager
Get available quality levels
Each QualityLevel includes a label (for example, “Auto”, “240p”, “720p”), bitrate, resolution, and an isAuto flag:
Get the current quality level
Switch to a specific quality level
Note: Playback continues from the same position. The player might buffer briefly during the switch.
Reset to auto mode
Switch back to ABR so the player adjusts quality automatically:
Load quality levels dynamically
Quality levels become available only after playback starts. Trigger loading manually when the player is ready:
Trigger this when player.timeControlStatus == .playing for accurate detection.
Handle quality change callbacks
Implement the quality delegate to receive updates: