From 35ae277ca3e799c6b25df254a9f9371fc6df9b39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Thu, 8 Jan 2026 10:01:05 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../live/pull/components/video/video.vue | 10 ++++++++-- pages/plugins/live/pull/pull.vue | 18 +++++++++++++++--- 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/pages/plugins/live/pull/components/video/video.vue b/pages/plugins/live/pull/components/video/video.vue index 5de331f7..42127127 100644 --- a/pages/plugins/live/pull/components/video/video.vue +++ b/pages/plugins/live/pull/components/video/video.vue @@ -156,7 +156,7 @@ auto_play_success(e) { // 静音播放成功时,触发事件,提示用户需要修改点击修改播放状态 if (e) { - this.$emit('mutedAutoPlaySuccess'); + this.$emit('mutedAutoPlaySuccess', this.muted); } }, @@ -169,7 +169,13 @@ auto_play_error(e) { // 播放失败,并且是非静音状态,则静音播放尝试是否成功 if (!e) { - this.muted = true; + console.log(this.muted); + // 如果是静音播放了,但是还是播放失败 + if (this.muted) { + this.$emit('mutedAutoPlayError'); + } else { + this.muted = true; + } } }, diff --git a/pages/plugins/live/pull/pull.vue b/pages/plugins/live/pull/pull.vue index 92b20e60..aca92a16 100644 --- a/pages/plugins/live/pull/pull.vue +++ b/pages/plugins/live/pull/pull.vue @@ -1,7 +1,7 @@