loadSubtitle method
Implementation
Future<void> loadSubtitle(UExternalSubtitle subtitle) async {
try {
final Uint8List bytes = await _fetchBytes(subtitle.uri);
if (bytes.isEmpty || _disposed) return;
final USubtitleData data = await compute(_parseSubtitleJob, _SubtitleJob(bytes, subtitle.format, subtitle.encoding, subtitle.language, subtitle.label));
if (_disposed) return;
_subtitles = data;
_updateCues(value.position);
} on FileSystemException {
return;
} on ClientException {
return;
}
}