Commit 33c38371 by wangshuo

播放页学习进度修改

parent 068f2942
......@@ -493,7 +493,6 @@ class Video extends Component {
this.player.addChild('CustomPlayButtonCover')
this.player.on('ready', () => {
this.recordSocket.emit('load', this.recordUserInfo())
this.countSchedule();
})
this.player.on('ratechange', () => {
this.currentPlaybackRate = this.player.playbackRate()
......@@ -503,6 +502,7 @@ class Video extends Component {
})
this.player.on('ended', () => {
this.sendWatchTime(this.watchSec, this.currentPlaybackRate)
this.countSchedule(); // 计算进度
this.getShareProgressInfo()
clearInterval(this.timer)
})
......@@ -594,6 +594,7 @@ class Video extends Component {
}else{
this.setupWS();
this.setupTimer();
this.countSchedule();
}
let index = this.getLastVideoIndex(course.last_video_id);
index = index >= 0 ? index : 0;
......
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