This commit is contained in:
parent
fbeb0740eb
commit
a7ccec704f
|
|
@ -409,6 +409,10 @@ const Meeting: React.FC = () => {
|
||||||
footerListTemplate[0][1].title = item.enableCamera ? '关闭视频' : '开启视频'
|
footerListTemplate[0][1].title = item.enableCamera ? '关闭视频' : '开启视频'
|
||||||
footerListTemplate[0][1].active = !item.enableCamera
|
footerListTemplate[0][1].active = !item.enableCamera
|
||||||
await agora.muteLocalVideoStream(!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) => {
|
await agora.getAudioMediaList().then(async (res) => {
|
||||||
|
|
@ -416,6 +420,10 @@ const Meeting: React.FC = () => {
|
||||||
footerListTemplate[0][0].title = item.enableMicr ? '静音' : '解除静音'
|
footerListTemplate[0][0].title = item.enableMicr ? '静音' : '解除静音'
|
||||||
footerListTemplate[0][0].active = !item.enableMicr
|
footerListTemplate[0][0].active = !item.enableMicr
|
||||||
await agora.muteLocalAudioStream(!item.enableMicr)
|
await agora.muteLocalAudioStream(!item.enableMicr)
|
||||||
|
} else {
|
||||||
|
footerListTemplate[0][0].title = '解除静音'
|
||||||
|
footerListTemplate[0][0].active = true
|
||||||
|
await agora.muteLocalAudioStream(true)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
setFooterList(footerListTemplate)
|
setFooterList(footerListTemplate)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue