setSubtitle method
- String? id
Sets the currently selected SubtitleTrack based on the provided id
.
Using null
as id
disables subtitles. A list of currently available
SubtitleTracks can be retrieved via availableSubtitles.
Implementation
@override
Future<void> setSubtitle(String? id) async =>
_invokeMethod<void>(Methods.setSubtitle, id);