mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-14 05:16:43 +08:00
视频播放笔记记录时间的控制
This commit is contained in:
@@ -524,6 +524,16 @@ export default {
|
||||
document.msFullScreen
|
||||
);
|
||||
},
|
||||
//开始播放
|
||||
startPlay:function(newTime){
|
||||
if(newTime){
|
||||
this.videoDom.currentTime = newTime;
|
||||
this.barrageTimelineStart = newTime;
|
||||
this.updateProgressBySetTime(newTime);
|
||||
}
|
||||
this.isPlaying = true;
|
||||
this.videoDom.play();
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
currentVolume: function () {
|
||||
@@ -539,13 +549,13 @@ export default {
|
||||
this.$emit('onPlayerEnded', {})
|
||||
}
|
||||
},
|
||||
notePlay: function(val) {
|
||||
if(val) {
|
||||
this.updateProgressBySetTime(val);
|
||||
this.isPlaying = true;
|
||||
this.videoDom.play();
|
||||
}
|
||||
},
|
||||
// notePlay: function(val) {
|
||||
// if(val) {
|
||||
// this.updateProgressBySetTime(val);
|
||||
// this.isPlaying = true;
|
||||
// this.videoDom.play();
|
||||
// }
|
||||
// },
|
||||
src: function () {
|
||||
// 当视频地址变更时,重载视频
|
||||
this.videoDom.load();
|
||||
|
||||
@@ -49,7 +49,7 @@ export default {
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
console.log(this.isDrag,'isDrag');
|
||||
//console.log(this.isDrag,'isDrag');
|
||||
//初始化一些固定数据
|
||||
let dom_full = this.$el.getElementsByClassName("progress-full")[0];
|
||||
this.dom_full = dom_full;
|
||||
|
||||
Reference in New Issue
Block a user