removeSubtitle

abstract fun removeSubtitle(trackId: String)

Deprecated

Use `Source.removeSubtitleTrack(trackId)` on the currently active source instead e.g. Player.source.removeSubtitleTrack(trackId)

Replace with

source?.removeSubtitleTrack(trackId)

Removes the existing SubtitleTrack with trackId from the list of available subtitle tracks. If the track is currently selected, it will be de-selected and then removed. If no SubtitleTrack with the given trackId exists, the call has no effect. Use setSubtitle to just disable but not remove an active SubtitleTrack.

Has no effect if there is no active playback session.

This function is deprecated. Use Source.removeSubtitleTrack on the currently active source instead e.g. Player.source.removeSubtitleTrack