This commit is contained in:
parent
23529b0eed
commit
09ea6f9936
|
|
@ -596,10 +596,14 @@ const Meeting: React.FC = () => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 渲染视频
|
// 渲染视频
|
||||||
const renderVideo = async (uid: string): Promise<void> => {
|
const renderVideo = async (uid: string = ''): Promise<void> => {
|
||||||
|
if (uid) {
|
||||||
if (currentVideoId === uid || clickCurrentLookUserStatus === false) {
|
if (currentVideoId === uid || clickCurrentLookUserStatus === false) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
uid = userInfo.uid
|
||||||
|
}
|
||||||
setClickCurrentLookUserStatus(false)
|
setClickCurrentLookUserStatus(false)
|
||||||
setCurrentLookUserStatus(0)
|
setCurrentLookUserStatus(0)
|
||||||
setRoomUserList((res: any) => {
|
setRoomUserList((res: any) => {
|
||||||
|
|
@ -882,6 +886,7 @@ const Meeting: React.FC = () => {
|
||||||
agora.stopScreenCapture()
|
agora.stopScreenCapture()
|
||||||
footerListTemplate[1][0].title = '共享屏幕'
|
footerListTemplate[1][0].title = '共享屏幕'
|
||||||
setFooterList(footerListTemplate)
|
setFooterList(footerListTemplate)
|
||||||
|
renderVideo()
|
||||||
}
|
}
|
||||||
// 获取房间用户
|
// 获取房间用户
|
||||||
const getRoomUser = async (): Promise<void> => {
|
const getRoomUser = async (): Promise<void> => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue