updatePreloadABRConfig static method

Future<void> updatePreloadABRConfig({
  1. required TTVideoABRStartupConfig config,
})

Update preload ABR config The ABR configuration should be created through TTVideoABRStartupConfig.create() first @param config ABR startup configuration with Hash

Implementation

static Future<void> updatePreloadABRConfig(
    {required TTVideoABRStartupConfig config}) async {
  try {
    final configHash = config.hashCode;
    await _methodChannel.invokeMethod<void>(
        'updatePreloadABRConfigByHash', configHash);
    TTFLogger.d('TTVideoEngineStrategy',
        'updatePreloadABRConfig with Hash: $configHash');
  } catch (e) {
    TTFLogger.e('TTVideoEngineStrategy', 'updatePreloadABRConfig error: $e');
    rethrow;
  }
}