学习园地
parent
168ff70e22
commit
7f54df0235
|
@ -150,7 +150,7 @@ export default {
|
||||||
this.CLASSCURRICULUM_ID = options.CLASSCURRICULUM_ID;
|
this.CLASSCURRICULUM_ID = options.CLASSCURRICULUM_ID;
|
||||||
this.CLASS_ID = options.CLASS_ID;
|
this.CLASS_ID = options.CLASS_ID;
|
||||||
this.STUDENT_ID = options.STUDENT_ID;
|
this.STUDENT_ID = options.STUDENT_ID;
|
||||||
this.ISFACE = options.ISFACE;
|
this.ISFACE = '0';
|
||||||
this.fnInit();
|
this.fnInit();
|
||||||
},
|
},
|
||||||
onReady() {
|
onReady() {
|
||||||
|
@ -379,7 +379,7 @@ export default {
|
||||||
this.videoContext = uni.createVideoContext("video");
|
this.videoContext = uni.createVideoContext("video");
|
||||||
}
|
}
|
||||||
this.videoContext.play();
|
this.videoContext.play();
|
||||||
this.serverVideoPlayTime !== 0 && videoContext.seek(this.serverVideoPlayTime);
|
this.serverVideoPlayTime !== 0 && this.videoContext.seek(this.serverVideoPlayTime);
|
||||||
},
|
},
|
||||||
fnTimeUpdate(event) {
|
fnTimeUpdate(event) {
|
||||||
this.throttle(async () => {
|
this.throttle(async () => {
|
||||||
|
@ -389,18 +389,18 @@ export default {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//app视频自带bug,判断当前视频进度与服务器进度差,如果小于10秒,则退出重新进
|
//app视频自带bug,判断当前视频进度与服务器进度差,如果小于10秒,则退出重新进
|
||||||
if(currentTime !== 0 && Math.abs(currentTime - this.serverVideoPlayTime) > 10) {
|
// if(currentTime !== 0 && Math.abs(currentTime - this.serverVideoPlayTime) > 10) {
|
||||||
this.videoContext.pause();
|
// this.videoContext.pause();
|
||||||
uni.showModal({
|
// uni.showModal({
|
||||||
title: "提示",
|
// title: "提示",
|
||||||
content: "app开发环境问题,偶现当前视频进度获取不准确,为了防止进度被覆盖,请退出重新进入!",
|
// content: "app开发环境问题,偶现当前视频进度获取不准确,为了防止进度被覆盖,请退出重新进入!",
|
||||||
showCancel:false,
|
// showCancel:false,
|
||||||
success: (res) => {
|
// success: (res) => {
|
||||||
uni.navigateBack();
|
// uni.navigateBack();
|
||||||
return;
|
// return;
|
||||||
},
|
// },
|
||||||
});
|
// });
|
||||||
}
|
// }
|
||||||
this.changeVideoPlayTime = currentTime;
|
this.changeVideoPlayTime = currentTime;
|
||||||
if (currentTime - this.serverVideoPlayTime >= 5) {
|
if (currentTime - this.serverVideoPlayTime >= 5) {
|
||||||
this.serverVideoPlayTime = currentTime;
|
this.serverVideoPlayTime = currentTime;
|
||||||
|
|
Loading…
Reference in New Issue