This commit is contained in:
parent
d860e6d920
commit
fbeb0740eb
|
|
@ -404,13 +404,21 @@ const Meeting: React.FC = () => {
|
|||
}
|
||||
if (item.uid === userInfo.uid) {
|
||||
const footerListTemplate = [...footerList]
|
||||
footerListTemplate[0][0].title = item.enableMicr ? '静音' : '解除静音'
|
||||
footerListTemplate[0][0].active = !item.enableMicr
|
||||
footerListTemplate[0][1].title = item.enableCamera ? '关闭视频' : '开启视频'
|
||||
footerListTemplate[0][1].active = !item.enableCamera
|
||||
await agora.getVideoDeviceManager().then(async (res) => {
|
||||
if (res.list.length) {
|
||||
footerListTemplate[0][1].title = item.enableCamera ? '关闭视频' : '开启视频'
|
||||
footerListTemplate[0][1].active = !item.enableCamera
|
||||
await agora.muteLocalVideoStream(!item.enableCamera)
|
||||
}
|
||||
})
|
||||
await agora.getAudioMediaList().then(async (res) => {
|
||||
if (res.ecordingList.length) {
|
||||
footerListTemplate[0][0].title = item.enableMicr ? '静音' : '解除静音'
|
||||
footerListTemplate[0][0].active = !item.enableMicr
|
||||
await agora.muteLocalAudioStream(!item.enableMicr)
|
||||
}
|
||||
})
|
||||
setFooterList(footerListTemplate)
|
||||
await agora.muteLocalAudioStream(!item.enableMicr)
|
||||
await agora.muteLocalVideoStream(!item.enableCamera)
|
||||
}
|
||||
if (userSearchValue) {
|
||||
if (item.userName.indexOf(userSearchValue) !== -1) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue