getSubTitles method

Future<String> getSubTitles(
  1. ClosedCaptionTrackInfo trackInfo
)

Returns the subtitles as a string. In XML format.

Implementation

Future<String> getSubTitles(ClosedCaptionTrackInfo trackInfo) async {
  final r = await _httpClient.get(trackInfo.url);
  return utf8.decode(r.bodyBytes, allowMalformed: true);
}