setCacheFolderPath static method

Future<void> setCacheFolderPath(
  1. String path
)

设置播放引擎的cache目录。设置后,离线下载,预下载,播放器等会优先从此目录读取和存储

Implementation

static Future<void> setCacheFolderPath(String path) async {
  return platform(
    android: (pool) async {
      await com_tencent_rtmp_TXPlayerGlobalSetting.setCacheFolderPath(path);
    },
    ios: (pool) async {
      await TXPlayerGlobalSetting.setCacheFolderPath(path);
    },
  );
}