Track Selection for iOS
This document describes the steps required for adding support for the multi-audio and captions functionality in your application on iOS devices.
Note: Track selection modes are available for audio and text tracks only
Get Available Tracks
To get the available captions and audio tracks, register to the ‘PlayerEvents.tracksAvailable’ event on the player as follows:
Select Track
To switch between tracks, use the following code:
Get Current Tracks
Get Current Bitrate
Available Modes and Behavior
There are three available track selection modes:
- Off - Off, which is the default mode, means different things for text selection and audio selection: for audio selection, Off means the player will use the default value from the media. For text, the player will simply turn text selection off.
- Auto - In this mode, the player selects the language by the device locale if available; if not, it takes the default selection from the stream instead (if there is one).
- Selection - This mode uses a specific selection, where you’ll need to provide the specific selection you’d like to use.
Text Track Selection
Audio Track Selection
Code Samples
Go to PlayKit iOS Samples for code samples.
Have Questions or Need Help?
Check out the Kaltura Player SDK Forum page for different ways of getting in touch.