This commit is contained in:
yj 2024-10-18 15:55:32 +08:00
parent b579f77b9f
commit 3423e13487
1 changed files with 8 additions and 3 deletions

View File

@ -1009,9 +1009,14 @@ const Meeting: React.FC = () => {
},
onLocalVideoStateChanged: async (_source: VideoSourceType, _state: LocalVideoStreamState, reason: LocalVideoStreamReason) => {
if (reason === 12) {
stopScreenCapture()
setSharedScreenItem('')
allUserLook(userInfo.uid, userInfo.userName)
setIsScreenCapture(bool => {
if (bool) {
stopScreenCapture()
setSharedScreenItem('')
allUserLook(userInfo.uid, userInfo.userName)
}
return false
})
}
}
})