onPlayerCacheStats
- HarmonyOS
更新时间不可用
报告当前缓存中的媒体资源的相关信息。
onPlayerCacheStats?:(stats:CacheStatistics) => void详情
调用 openWithMediaSource 方法且设置 enableCache 成员为 true 后,SDK 会在媒体文件打开后每秒触发一次该回调,报告当前缓存的媒体文件的统计数据。
参数
缓存中的媒体资源的相关信息,详见 CacheStatistics。
For AI agents: see the complete documentation index at /llms.txt.
更新时间不可用
报告当前缓存中的媒体资源的相关信息。
onPlayerCacheStats?:(stats:CacheStatistics) => void调用 openWithMediaSource 方法且设置 enableCache 成员为 true 后,SDK 会在媒体文件打开后每秒触发一次该回调,报告当前缓存的媒体文件的统计数据。
缓存中的媒体资源的相关信息,详见 CacheStatistics。