This commit is contained in:
yj 2024-08-22 10:03:15 +08:00
parent 704f4b31a9
commit 06745ef862
1 changed files with 4 additions and 2 deletions

View File

@ -596,10 +596,11 @@ const Meeting: React.FC = () => {
}
}
// 渲染视频
const renderVideo = async (uid: string): Promise<void> => {
if (currentVideoId === uid || clickCurrentLookUserStatus === false) {
const renderVideo = async (uid: string = ''): Promise<void> => {
if ((uid && currentVideoId === uid) || clickCurrentLookUserStatus === false) {
return
}
if (!uid) uid = userInfo.uid
setClickCurrentLookUserStatus(false)
setCurrentLookUserStatus(0)
setRoomUserList((res: any) => {
@ -882,6 +883,7 @@ const Meeting: React.FC = () => {
agora.stopScreenCapture()
footerListTemplate[1][0].title = '共享屏幕'
setFooterList(footerListTemplate)
renderVideo()
}
// 获取房间用户
const getRoomUser = async (): Promise<void> => {