Switch audio tracks
Learn how to detect and switch between multiple audio tracks in the FastPix iOS Player.
The FastPix iOS Player SDK automatically detects all available audio tracks from the stream and lets users switch between them during playback. This is useful for multi-language content.
Set up the audio track delegate
Assign the delegate to receive audio track updates:
Set a preferred audio track
Set a preferred audio track by language name. The SDK automatically selects it when the video loads. If the preferred track isn’t available, the manifest default is used.
The preferred track is automatically applied on every playlist item change.
Get available audio tracks
Get the current audio track
Switch audio tracks
Handle audio track events
Conform to FastPixAudioTrackDelegate to receive track updates: