Commit 9c8effe6 authored by 张伯涛's avatar 张伯涛

视频播放限制不可以点击拖动进度条

parent b6a39656
......@@ -1368,13 +1368,13 @@ export default {
const progress = this.currentSection.progress && parseInt(Number(this.currentSection.progress.split('%')[0])) >= 100
const valueZero = this.course.valueGain === '0' || this.course.valueGain === ''
player.currentTime(this.currentLocation)
/* if (progress || valueZero || this.isOutLine) {
if (progress || valueZero || this.isOutLine) {
vjsProgress[0].style.pointerEvents = 'auto'
vjsProgress[0].style.cursor = 'default'
} else {
vjsProgress[0].style.pointerEvents = 'none'
vjsProgress[0].style.cursor = 'not-allowed'
}*/
}
},
onPlayerTimeupdate(player) {
this.currentPlayTime = player.currentTime()
......
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