This commit is contained in:
yj 2024-08-22 10:07:49 +08:00
parent 4e3c2edcc7
commit 1a7ab56862
1 changed files with 3 additions and 4 deletions

View File

@ -534,13 +534,13 @@ const Meeting: React.FC = () => {
userItem.isRoom = true;
userItem.isAdmin = item.user.roleId === '1' || item.user.isRoomManager;
refreshVideoView(userItem)
changeVideo()
// changeVideo()
return [...res]
} else {
item.user.isRoom = true;
item.user.isAdmin = item.user.roleId === '1' || item.user.isRoomManager;
refreshVideoView(item.user)
changeVideo()
// changeVideo()
return [...res, item.user]
}
})
@ -669,7 +669,7 @@ const Meeting: React.FC = () => {
await GetShowUser(state.channelId).then(async (res) => {
if (res.code === 200 && res.data) {
renderVideo(res.data)
changeVideo()
// changeVideo()
}
})
}
@ -883,7 +883,6 @@ const Meeting: React.FC = () => {
agora.stopScreenCapture()
footerListTemplate[1][0].title = '共享屏幕'
setFooterList(footerListTemplate)
// renderVideo()
}
// 获取房间用户
const getRoomUser = async (): Promise<void> => {