This commit is contained in:
yj 2024-08-12 10:36:17 +08:00
parent 6ed15fff6c
commit 8e73575952
1 changed files with 15 additions and 13 deletions

View File

@ -339,7 +339,7 @@ const Meeting: React.FC = () => {
}, [recorder]) }, [recorder])
const changeAgoraDevice = () => { const changeAgoraDevice = () => {
console.log(roomUserList); setRoomUserList((res: any) => {
roomUserList.forEach((item: any) => { roomUserList.forEach((item: any) => {
if (item.uid === user.uid) { if (item.uid === user.uid) {
const footerListTemplate = [...footerList] const footerListTemplate = [...footerList]
@ -352,6 +352,8 @@ const Meeting: React.FC = () => {
agora.muteLocalAudioStream(!item.enableMicr) agora.muteLocalAudioStream(!item.enableMicr)
agora.muteLocalVideoStream(!item.enableCamera) agora.muteLocalVideoStream(!item.enableCamera)
}); });
return res
})
} }
// 替换数据 // 替换数据
const setAllUserListData = (key: string, item: any): void => { const setAllUserListData = (key: string, item: any): void => {