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