ForcedSubtitleCallback

ForcedSubtitleCallback

fun interface ForcedSubtitleCallback

Can be implemented to overwrite SubtitleTrack.isForced for newly parsed subtitle tracks.

Functions

NameSummary
isForcedSubtitleabstract fun isForcedSubtitle(subtitleTrack: SubtitleTrack): Boolean
Determines if the SubtitleTrack should be selected by the player per default and kept in sync with the selected audio language. In that case the subtitle track will not appear in Source.availableSubtitleTracks.