From ce23930a048f7f5c028b37b57afec6777fde405d Mon Sep 17 00:00:00 2001 From: joshen Date: Fri, 11 Jul 2025 17:46:17 +0800 Subject: [PATCH] test --- src/components/VideoPlayer/index.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/VideoPlayer/index.vue b/src/components/VideoPlayer/index.vue index 9a652683..b55dffb6 100644 --- a/src/components/VideoPlayer/index.vue +++ b/src/components/VideoPlayer/index.vue @@ -317,8 +317,8 @@ export default { } setInterval(() => { - //console.log('this.currentProgress::',this.currentProgress,this.isDrag,this.videoDom.currentTime , this.videoDom.duration) - // 视频播放时本地记录视频实时播放时长,视频设置了禁止拖动时执行 + console.log('this.currentProgress::',this.currentProgress,this.isDrag,this.videoDom.currentTime , this.videoDom.readyState) + // 视频播放时本地记录视频实时播放时长,视频设置了禁止拖动时执行 if(!this.isDrag){ var time = localStorage.getItem('videoProgressData') var arr = time&&JSON.parse(time) || {} @@ -364,6 +364,11 @@ export default { } // 根据视频的readyState判断下一帧是否已加载,并控制loading的显示 this.isShowLoading = this.videoDom.readyState < 3; + console.log("当前缓存:"+this.videoDom.readyState) + if (this.videoDom.readyState < 1){ + console.log("详细信息",this.videoDom) + console.log("卡了",this.videoDom.readyState) + } //if() //console.log(this.videoDom.readyState,'this.videoDom.readyState'); }, 1000);