setSubtitleTrack

abstract fun setSubtitleTrack(trackId: String?)

Enables the SubtitleTrack that corresponds to the trackId. A list of currently available SubtitleTracks can be retrieved via availableSubtitleTracks. Providing null as the trackId disables subtitles.

Has no effect if the source is not attached to a player or if the trackId is not contained in the availableSubtitleTracks.