fix(courseDetail): 修复视频播放逻辑和调整代码格式
调整视频播放逻辑,将事件监听移除和播放位置设置移到setTimeout外部 统一缩进格式,修复模板中的多余空格
This commit is contained in:
parent
608bcd0753
commit
bd6ee74eaa
@ -426,11 +426,11 @@ export default {
|
||||
}
|
||||
|
||||
function plays() {
|
||||
setTimeout(function () {
|
||||
document.getElementById("video").removeEventListener("play", plays, false);
|
||||
document.getElementById("video").currentTime = _this.record;
|
||||
_this.current_sign = _this.record;
|
||||
Toast("从上次记录的地方开始播放");
|
||||
setTimeout(function () {
|
||||
_this.video_timer = setInterval(timer, 100);
|
||||
}, 1000);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user