From 4f52715273b891a5cc2767be1c07b59cb7b95bc2 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:46:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=92=AD=E6=94=BE=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/plugins/live/pull/components/video/video.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pages/plugins/live/pull/components/video/video.vue b/pages/plugins/live/pull/components/video/video.vue index 42127127..cf2c08c6 100644 --- a/pages/plugins/live/pull/components/video/video.vue +++ b/pages/plugins/live/pull/components/video/video.vue @@ -154,6 +154,10 @@ // 网页有的时候直接访问会报错,所以这里需要判断一下,如果报错则静音播放,静音播放成功添加提示,用户操作之后改为非静音播放 // 静音自动播放成功, 触发事件, 添加提示弹出框,用户操作之后改为非静音播放 auto_play_success(e) { + uni.showToast({ + title: this.muted ? '静音播放成功' : '非静音播放成功', + icon: 'none' + }); // 静音播放成功时,触发事件,提示用户需要修改点击修改播放状态 if (e) { this.$emit('mutedAutoPlaySuccess', this.muted); @@ -170,6 +174,10 @@ // 播放失败,并且是非静音状态,则静音播放尝试是否成功 if (!e) { console.log(this.muted); + uni.showToast({ + title: this.muted ? '静音播放失败' : '非静音播放失败', + icon: 'none' + }); // 如果是静音播放了,但是还是播放失败 if (this.muted) { this.$emit('mutedAutoPlayError');