setMediaSource method
set play source
Implementation
Future<void> setMediaSource(TTVideoEngineMediaSource source) async {
TTFLogger.i(_logTag, "setMediaSource:${source.toJson()}");
if (source is TTVideoEngineUrlSource) {
setUrlSource(source);
} else if (source is TTVideoEngineVidSource) {
setVidSource(source);
}
}