setGlobalMaxCacheSize static method
Setting the maximum cache size for the playback engine. After setting, files in the Cache directory will be automatically cleaned up based on the set value. @param size Maximum cache size (unit: MB).
设置播放引擎的最大缓存大小。设置后会根据设定值自动清理Cache目录的文件 @param size 最大缓存大小(单位:MB)
Implementation
static Future<void> setGlobalMaxCacheSize(int size) async {
return await _playerPluginApi.setGlobalMaxCacheSize(IntMsg()..value = size);
}