可以在bufferingUpdate中监听判断缓存时长(CACHED\_DURATION)来捕捉到avplayer正在缓存、无缓存、可播放、卡住的状态。请参考链接:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-media-V5\#onbufferingupdate9可通过获取指定应用实时下行流量来获取:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-net-statistics-V5\#statisticsgetuidrxbytes10
可以在bufferingUpdate中监听判断缓存时长(CACHED\_DURATION)来捕捉到avplayer正在缓存、无缓存、可播放、卡住的状态。
请参考链接:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-media-V5\#onbufferingupdate9
可通过获取指定应用实时下行流量来获取:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-net-statistics-V5\#statisticsgetuidrxbytes10