diff --git a/src/components/VideoPlayer/index.vue b/src/components/VideoPlayer/index.vue index 1c2ba4e5..7de2f936 100644 --- a/src/components/VideoPlayer/index.vue +++ b/src/components/VideoPlayer/index.vue @@ -506,6 +506,13 @@ export default { updateProgressBySetTime(newCurrentTime) { this.currentProgress = newCurrentTime / this.videoDom.duration; }, + /* 点击进度条更新视频播放进度2 + */ + updateProgressByClickBar2(newCurrentTime,progressVideo) { + this.currentProgress = progressVideo; + this.barrageTimelineStart = newCurrentTime; + this.videoDom.currentTime = newCurrentTime; + }, /* 提高视频音量 */ increaseVolume() { @@ -619,7 +626,7 @@ export default { handleFullscreenChange() { console.log("handleFullscreenChange gx this.isFullScreen()",this.isFullScreen()) console.log("handleFullscreenChange gx this.isFullscreen",this.isFullscreen) - + if(this.isFullscreen){ this.isFullscreen = !!document.fullscreenElement; if (!this.isFullscreen) { diff --git a/src/views/study/coursenew.vue b/src/views/study/coursenew.vue index 5333348d..b7c37012 100644 --- a/src/views/study/coursenew.vue +++ b/src/views/study/coursenew.vue @@ -809,6 +809,11 @@ this.$nextTick(function(){ + if(this.contentData.progressVideo){ + this.$refs.myVideoPlayer.updateProgressByClickBar2(this.contentData.lastStudyTime,this.contentData.progressVideo); + // $this.notePlay = this.contentData.lastStudyTime; + } + //let h0=document.getElementById('id_course_player').offsetHeight; let h=$this.$refs.coursePlayer.offsetHeight; //let h1=$this.$refs.coursePlayer.clientHeight; @@ -1465,6 +1470,7 @@ } //console.log(scon.contentId,con.id); con.lastStudyTime = scon.lastStudyTime; + con.progressVideo = scon.progressVideo; //以下判断是为了兼容之前的问题,学习状态 if (scon.status) { con.status = scon.status;