diff --git a/pages/application/onlinexxks/video_study.vue b/pages/application/onlinexxks/video_study.vue index eecea6d..0b9674c 100644 --- a/pages/application/onlinexxks/video_study.vue +++ b/pages/application/onlinexxks/video_study.vue @@ -150,7 +150,7 @@ export default { this.CLASSCURRICULUM_ID = options.CLASSCURRICULUM_ID; this.CLASS_ID = options.CLASS_ID; this.STUDENT_ID = options.STUDENT_ID; - this.ISFACE = options.ISFACE; + this.ISFACE = '0'; this.fnInit(); }, onReady() { @@ -379,7 +379,7 @@ export default { this.videoContext = uni.createVideoContext("video"); } this.videoContext.play(); - this.serverVideoPlayTime !== 0 && videoContext.seek(this.serverVideoPlayTime); + this.serverVideoPlayTime !== 0 && this.videoContext.seek(this.serverVideoPlayTime); }, fnTimeUpdate(event) { this.throttle(async () => { @@ -389,18 +389,18 @@ export default { return; } //app视频自带bug,判断当前视频进度与服务器进度差,如果小于10秒,则退出重新进 - if(currentTime !== 0 && Math.abs(currentTime - this.serverVideoPlayTime) > 10) { - this.videoContext.pause(); - uni.showModal({ - title: "提示", - content: "app开发环境问题,偶现当前视频进度获取不准确,为了防止进度被覆盖,请退出重新进入!", - showCancel:false, - success: (res) => { - uni.navigateBack(); - return; - }, - }); - } + // if(currentTime !== 0 && Math.abs(currentTime - this.serverVideoPlayTime) > 10) { + // this.videoContext.pause(); + // uni.showModal({ + // title: "提示", + // content: "app开发环境问题,偶现当前视频进度获取不准确,为了防止进度被覆盖,请退出重新进入!", + // showCancel:false, + // success: (res) => { + // uni.navigateBack(); + // return; + // }, + // }); + // } this.changeVideoPlayTime = currentTime; if (currentTime - this.serverVideoPlayTime >= 5) { this.serverVideoPlayTime = currentTime;