removeSubtitle method

  1. @override
Future<void> removeSubtitle(
  1. String id
)

Removes the existing SubtitleTrack specified by id. If the track is currently active, it will be deactivated and then removed. If no SubtitleTrack with the given id exists, the call will be ignored. Using this API removes the SubtitleTrack from the availableSubtitles, use setSubtitle to disable an active SubtitleTrack.

Implementation

@override
Future<void> removeSubtitle(String id) async =>
    _playerPlatformInterface.removeSubtitle(id);