会议监控
This commit is contained in:
parent
beb94a8eba
commit
30b34d5872
|
|
@ -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;
|
||||
}
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue