This commit is contained in:
parent
dd63f928ed
commit
d1cd250399
|
|
@ -1039,6 +1039,7 @@ const Meeting: React.FC = () => {
|
||||||
onConnectionStateChanged: async (_connection: RtcConnection, stateNumber: ConnectionStateType, reason: ConnectionChangedReasonType) => {
|
onConnectionStateChanged: async (_connection: RtcConnection, stateNumber: ConnectionStateType, reason: ConnectionChangedReasonType) => {
|
||||||
const reconnectingCode = [2, 16, 11, 13, 14, 12]
|
const reconnectingCode = [2, 16, 11, 13, 14, 12]
|
||||||
if (stateNumber === 4 && reconnectingCode.indexOf(reason) >= 0) {
|
if (stateNumber === 4 && reconnectingCode.indexOf(reason) >= 0) {
|
||||||
|
meetingDisconnectedRef.current.changeModal(true)
|
||||||
setIsScreenCapture(bool => {
|
setIsScreenCapture(bool => {
|
||||||
if (bool) {
|
if (bool) {
|
||||||
setIsNetworkDisconnected(true)
|
setIsNetworkDisconnected(true)
|
||||||
|
|
@ -1046,6 +1047,8 @@ const Meeting: React.FC = () => {
|
||||||
}
|
}
|
||||||
return bool
|
return bool
|
||||||
})
|
})
|
||||||
|
} else if (stateNumber === 3) {
|
||||||
|
meetingDisconnectedRef.current.changeModal(false)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLocalVideoStateChanged: async (_source: VideoSourceType, _state: LocalVideoStreamState, reason: LocalVideoStreamReason) => {
|
onLocalVideoStateChanged: async (_source: VideoSourceType, _state: LocalVideoStreamState, reason: LocalVideoStreamReason) => {
|
||||||
|
|
@ -1758,9 +1761,6 @@ const Meeting: React.FC = () => {
|
||||||
})
|
})
|
||||||
return res
|
return res
|
||||||
})
|
})
|
||||||
} else {
|
|
||||||
message.error('网络断开,请检查网络')
|
|
||||||
meetingDisconnectedRef.current.changeModal(true)
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue