API 参考/实时互动 RTC/HarmonyOS/setMaxCacheFileCountsetMaxCacheFileCountHarmonyOS更新时间 2026/11/18 09:16:18设置缓存媒体文件数量的上限。复制页面 参数Copy Anchor Link countCopy Anchor Link 可缓存的媒体文件数量的上限,默认值为 1000。 返回值Copy Anchor Link 0:方法调用成功。 < 0:方法调用失败,详见 MediaPlayerReason。