mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-17 23:06:45 +08:00
结束函数更换
This commit is contained in:
@@ -363,13 +363,13 @@ export default {
|
||||
//当视频由于需要缓冲下一帧而停止,解决一直计时的问题
|
||||
onWaiting(){
|
||||
console.log('触发了onWairing');
|
||||
this.$emit('onPlayerEnded', {})
|
||||
this.$emit('onPlayerPause', {})
|
||||
},
|
||||
//当音频/视频在已因缓冲而暂停或停止后已就绪时
|
||||
onPlaying(){
|
||||
console.log('触发缓存结束onPlaying');
|
||||
if(this.videoDom.paused){
|
||||
this.$emit('onPlayerEnded', {})
|
||||
this.$emit('onPlayerPause', {})
|
||||
}else{
|
||||
this.$emit('onPlayerPlay', {});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user