Commit 4a922594 authored by 李维's avatar 李维

调整问题点显示逻辑

parent 21e8ab2e
......@@ -586,11 +586,11 @@ cc.Class({
},
checkPlayTimes() {
return 1;
return 0;
},
getJumpData() {
return {"step":5};
return;// {"step":5};
},
maskSpr: null,
......@@ -1357,14 +1357,15 @@ cc.Class({
videoLoadEnd() {
this.videoDuration = this.video.getDuration();
// 时长获取到以后 可以计算题目点
this.setProgressBarMarkPoints();
if (this.jumpData) {
console.log(this.jumpData)
this.setJumpTime();
}
if (this.jumpTime) {
// 时长获取到以后 可以计算题目点
this.setProgressBarMarkPoints();
this.resetQuesIndex(this.jumpTime);
this.initCurQues();
} else if (this.isFirst) {
......@@ -1646,6 +1647,7 @@ cc.Class({
// 监听组件发来的拖动百分比
this.videoControlBar.on("on_drag_percent", (percent)=>{
this.video.currentTime = percent * this.videoDuration;
this.showProgressBar();
})
// 监听组件发来视频播放、暂停事件
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment