TTVideoEngineUrlSource.initWithURL constructor
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);
}
}