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

调整问题点显示逻辑

parent 21e8ab2e
...@@ -586,11 +586,11 @@ cc.Class({ ...@@ -586,11 +586,11 @@ cc.Class({
}, },
checkPlayTimes() { checkPlayTimes() {
return 1; return 0;
}, },
getJumpData() { getJumpData() {
return {"step":5}; return;// {"step":5};
}, },
maskSpr: null, maskSpr: null,
...@@ -1357,14 +1357,15 @@ cc.Class({ ...@@ -1357,14 +1357,15 @@ cc.Class({
videoLoadEnd() { videoLoadEnd() {
this.videoDuration = this.video.getDuration(); this.videoDuration = this.video.getDuration();
// 时长获取到以后 可以计算题目点
this.setProgressBarMarkPoints();
if (this.jumpData) { if (this.jumpData) {
console.log(this.jumpData) console.log(this.jumpData)
this.setJumpTime(); this.setJumpTime();
} }
if (this.jumpTime) { if (this.jumpTime) {
// 时长获取到以后 可以计算题目点
this.setProgressBarMarkPoints();
this.resetQuesIndex(this.jumpTime); this.resetQuesIndex(this.jumpTime);
this.initCurQues(); this.initCurQues();
} else if (this.isFirst) { } else if (this.isFirst) {
...@@ -1646,6 +1647,7 @@ cc.Class({ ...@@ -1646,6 +1647,7 @@ cc.Class({
// 监听组件发来的拖动百分比 // 监听组件发来的拖动百分比
this.videoControlBar.on("on_drag_percent", (percent)=>{ this.videoControlBar.on("on_drag_percent", (percent)=>{
this.video.currentTime = percent * this.videoDuration; 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