From ac948790052d990035c08ee305736187e6be9d69 Mon Sep 17 00:00:00 2001 From: nisen Date: Tue, 21 Nov 2023 13:20:15 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=93=E6=9D=9F=E5=87=BD=E6=95=B0=E6=9B=B4?= =?UTF-8?q?=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/VideoPlayer/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/VideoPlayer/index.vue b/src/components/VideoPlayer/index.vue index 922e3ab9..95bd36d5 100644 --- a/src/components/VideoPlayer/index.vue +++ b/src/components/VideoPlayer/index.vue @@ -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', {}); }