会议监控

This commit is contained in:
yj 2024-08-27 15:48:12 +08:00
parent beb94a8eba
commit 30b34d5872
2 changed files with 16 additions and 8 deletions

View File

@ -477,7 +477,15 @@ const Meeting: React.FC = () => {
break;
// 管理员查看随机用户
case 'Watch':
console.log(item);
if (userInfo.roleId !== '1') {
let userId = item.watchUids.find((uid: any) => uid === userInfo.uid)
if (userId) {
await agora.startCameraCapture()
} else {
await agora.stopCameraCapture();
}
agora.updateChannelMediaOptionsEx(userId ? true : false)
}
break;
}
})

View File

@ -131,15 +131,15 @@ const UserVideo: React.FC = () => {
</div>
</div>
<div className={styles.userVideoContentList}>
<div className={styles.userVideoContentListItem}>
{
userList.map((item: any, index: number) => {
return <div className={styles.userVideoContentListItemVideo} id={`video-${item.uid}`} key={index}>
{
userList.map((item: any, index: number) => {
return <div className={styles.userVideoContentListItem} key={index}>
<div className={styles.userVideoContentListItemVideo} id={`video-${item.uid}`}>
</div>
})
}
</div>
</div>
})
}
</div>
</div>
</div>