setMediaSource method

Future<void> setMediaSource(
  1. TTVideoEngineMediaSource source
)

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);
  }
}