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,10 +1009,15 @@ const Meeting: React.FC = () => {
}, },
onLocalVideoStateChanged: async (_source: VideoSourceType, _state: LocalVideoStreamState, reason: LocalVideoStreamReason) => { onLocalVideoStateChanged: async (_source: VideoSourceType, _state: LocalVideoStreamState, reason: LocalVideoStreamReason) => {
if (reason === 12) { if (reason === 12) {
setIsScreenCapture(bool => {
if (bool) {
stopScreenCapture() stopScreenCapture()
setSharedScreenItem('') setSharedScreenItem('')
allUserLook(userInfo.uid, userInfo.userName) allUserLook(userInfo.uid, userInfo.userName)
} }
return false
})
}
} }
}) })
if (state.enableCamera) { if (state.enableCamera) {