setCacheDir
- HarmonyOS
更新时间
设置待缓存的媒体文件的储存路径。
详情
注
该方法需在初始化 RtcEngine 之后调用。
参数
缓存文件储存的绝对路径。请确保指定的目录存在且可写。
返回值
- 0:方法调用成功。
- < 0:方法调用失败,详见 MediaPlayerReason。
For AI agents: see the complete documentation index at /llms.txt.
更新时间
设置待缓存的媒体文件的储存路径。
注
该方法需在初始化 RtcEngine 之后调用。
缓存文件储存的绝对路径。请确保指定的目录存在且可写。