This commit is contained in:
yj 2025-02-21 16:12:58 +08:00
parent 32acac493d
commit 4520bba95d
1 changed files with 4 additions and 7 deletions

View File

@ -1449,14 +1449,11 @@ const Meeting: React.FC = () => {
setAudioStatus(newState)
},
onActiveSpeaker: (_connection: RtcConnection, uid: number) => {
GetSharedScreen(state.channelId).then(req => {
if (req.code === 200) {
if (req.data) {
setIsShare(req.data)
} else {
renderVideo(String(uid))
}
setIsShare((res: any) => {
if (!res) {
renderVideo(String(uid))
}
return res
})
}
})