TTVideoEngineUrlSource.initWithURLVidCacheKey constructor

TTVideoEngineUrlSource.initWithURLVidCacheKey({
  1. required String url,
  2. required String vid,
  3. required String cacheKey,
})

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