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