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)