setStrategyVideoSources static method
Need to set the current playlist Set up playlist, E.g Refresh data @param videoSources play sources
Implementation
static Future<void> setStrategyVideoSources({required List<TTVideoEngineMediaSource> videoSources}) async {
if (videoSources.isEmpty) {
TTFLogger.e('TTVideoEngineStrategy', 'setStrategyVideoSources, invalid videoSources');
return;
}
List<dynamic> json = List<dynamic>.from(videoSources.map((x) => x.toJson()));
await _methodChannel.invokeMethod<void>('setStrategyVideoSources', json);
}