TTVideoEngineUrlSource.initWithURLVidCacheKey constructor
TTVideoEngineUrlSource.initWithURLVidCacheKey({})
Convenience factory for URL source with explicit vid and cacheKey.
This is useful when you want to keep a stable video id for strategy/preload/logging.
Implementation
factory TTVideoEngineUrlSource.initWithURLVidCacheKey(
{required String url, required String vid, required String cacheKey}) {
final TTVideoEngineUrlSource src =
TTVideoEngineUrlSource.initWithURL(url, cacheKey);
src.vid = vid;
return src;
}