This commit is contained in:
parent
32acac493d
commit
4520bba95d
|
|
@ -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
|
||||
})
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue