updatePreloadABRConfig static method
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;
}
}