From b044542744db2cbfa216e6bb851be07f38adc660 Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Tue, 20 Aug 2024 16:41:38 +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 3df6afa..1b15004 100644 --- a/src/page/Meeting/index.tsx +++ b/src/page/Meeting/index.tsx @@ -427,6 +427,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) => { @@ -434,6 +438,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)