课程笔记

This commit is contained in:
zhaofang
2022-09-09 15:00:17 +08:00
parent 6b8e77fcf1
commit 75036cc5fc
5 changed files with 138 additions and 30 deletions

View File

@@ -257,6 +257,10 @@ export default {
type: Number,
default: null,
},
notePlay:{//回到笔记时间点播放
type: Number,
default: null,
},
isDrag:{
type: Boolean,
default: null,
@@ -535,6 +539,13 @@ export default {
this.$emit('onPlayerEnded', {})
}
},
notePlay: function(val) {
if(val) {
this.updateProgressBySetTime(val);
this.isPlaying = true;
this.videoDom.play();
}
},
src: function () {
// 当视频地址变更时,重载视频
this.videoDom.load();