setCacheDir abstract method

Future<void> setCacheDir(
  1. String path
)

设置待缓存的媒体文件的储存路径。

该方法需在初始化 RtcEngine 之后调用。

  • path 缓存文件储存的绝对路径。请确保指定的目录存在且可写。

Returns 方法成功调用时,无返回值;方法调用失败时,会抛出 AgoraRtcException 异常,你需要捕获异常并进行处理。详见错误码了解详情和解决建议。 < 0:方法调用失败,详见 MediaPlayerReason 。

Implementation

Future<void> setCacheDir(String path);