parseSubtitles static method
Implementation
static Future<List<PipFlutterPlayerSubtitle>> parseSubtitles(
PipFlutterPlayerSubtitlesSource source) async {
switch (source.type) {
case PipFlutterPlayerSubtitlesSourceType.file:
return _parseSubtitlesFromFile(source);
case PipFlutterPlayerSubtitlesSourceType.network:
return _parseSubtitlesFromNetwork(source);
case PipFlutterPlayerSubtitlesSourceType.memory:
return _parseSubtitlesFromMemory(source);
default:
return [];
}
}