addStrategyVideoSources static method

Future<void> addStrategyVideoSources({
  1. required List<TTVideoEngineMediaSource> videoSources,
})

Add playlist to current playlist, E.g Load more data @param videoSources play sources

Implementation

static Future<void> addStrategyVideoSources({required List<TTVideoEngineMediaSource> videoSources}) async {
  if (videoSources.isEmpty) {
    TTFLogger.e('TTVideoEngineStrategy', 'addStrategyVideoSources, invalid videoSources');
    return;
  }
  List<dynamic> json = List<dynamic>.from(videoSources.map((x) => x.toJson()));
  await _methodChannel.invokeMethod<void>('addStrategyVideoSources', json);
}