setupMediaLoaderConfig static method

void setupMediaLoaderConfig(
  1. String fullPath
)

Setup media loader config.

设置播放器预加载配置

Implementation

static void setupMediaLoaderConfig(String fullPath) {
  String localCacheDir = "$fullPath/$_cacheDirectoryName";

  // FIXME keria: Why do int values need to be passed as strings??? Niubility..
  // 设置本地缓存配置
  FlutterAliplayer.enableLocalCache(
    _enableLocalCache,
    "$_localCacheMaxBufferMemoryKB",
    localCacheDir,
    DocTypeForIOS.documents,
  );

  // FIXME keria: Why do int values need to be passed as strings??? Niubility..
  // 设置缓存文件清理配置
  FlutterAliplayer.setCacheFileClearConfig(
    "$_localCacheExpireTime",
    "$_localCacheMaxCapacityMb",
    "$_localCacheFreeStorageMb",
  );
}