setPreloadTaskFactory static method

Future<bool> setPreloadTaskFactory()

Set preload task factory with ABR strategy integration This enables ABR (Adaptive Bitrate) selection for preloading tasks

Implementation

static Future<bool> setPreloadTaskFactory() async {
  try {
    final result =
        await _methodChannel.invokeMethod<bool>('setPreloadTaskFactory');
    TTFLogger.d('TTVideoEngineStrategy', 'setPreloadTaskFactory: $result');
    return result ?? false;
  } catch (e) {
    TTFLogger.e('TTVideoEngineStrategy', 'setPreloadTaskFactory error: $e');
    return false;
  }
}