Switch subtitle tracks
Learn how to discover, switch, and disable subtitle tracks in the FastPix Android Player.
SubtitleTrack properties
Each SubtitleTrack includes:
id— pass tosetSubtitleTrack(id)to switch tracks.languageCode/languageName/label— display in your subtitle menu.isSelected,isPlayable,isDefault,isForced— for UI state.- Optional:
role,codec,groupId.
Listen for subtitle track updates
Switch subtitle track by ID
Disable subtitles
Set a default subtitle language
Set a preferred subtitle language that applies automatically when tracks become available. This never overrides a manual selection:
Use BCP-47 / ISO language names like "English", "Spanish", "Hindi". If the preferred language doesn’t exist in the stream, the player keeps its normal selection.