TTVideoEngineUrlSource.initWithURL constructor

TTVideoEngineUrlSource.initWithURL(
  1. String? url,
  2. String? cacheKey
)

Implementation

factory TTVideoEngineUrlSource.initWithURL(String? url, String? cacheKey) {
  if (url == null || url.isEmpty) {
    throw Exception('url must be valid');
  } else {
    List<String> urls = [];
    urls.add(url);
    return TTVideoEngineUrlSource.initWithURLS(urls, cacheKey);
  }
}