From a7ccec704f8b8dd09502c7840076978c71c3c653 Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Tue, 20 Aug 2024 10:48:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/page/Meeting/index.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/page/Meeting/index.tsx b/src/page/Meeting/index.tsx index 2b56463..ced36bf 100644 --- a/src/page/Meeting/index.tsx +++ b/src/page/Meeting/index.tsx @@ -409,6 +409,10 @@ const Meeting: React.FC = () => { footerListTemplate[0][1].title = item.enableCamera ? '关闭视频' : '开启视频' footerListTemplate[0][1].active = !item.enableCamera await agora.muteLocalVideoStream(!item.enableCamera) + } else { + footerListTemplate[0][1].title = '开启视频' + footerListTemplate[0][1].active = true + await agora.muteLocalVideoStream(true) } }) await agora.getAudioMediaList().then(async (res) => { @@ -416,6 +420,10 @@ const Meeting: React.FC = () => { footerListTemplate[0][0].title = item.enableMicr ? '静音' : '解除静音' footerListTemplate[0][0].active = !item.enableMicr await agora.muteLocalAudioStream(!item.enableMicr) + } else { + footerListTemplate[0][0].title = '解除静音' + footerListTemplate[0][0].active = true + await agora.muteLocalAudioStream(true) } }) setFooterList(footerListTemplate)