mirror of https://github.com/OpenVidu/openvidu.git
openvidu-browser: update broken RTCPeerConnection check
parent
75945bb8fe
commit
52fee08e45
|
@ -778,7 +778,7 @@ export class Stream {
|
|||
return true;
|
||||
}
|
||||
const iceConnectionState: RTCIceConnectionState = this.getRTCPeerConnection().iceConnectionState;
|
||||
return iceConnectionState === 'disconnected' || iceConnectionState === 'failed';
|
||||
return iceConnectionState !== 'connected' && iceConnectionState !== 'completed';
|
||||
}
|
||||
|
||||
/* Private methods */
|
||||
|
|
Loading…
Reference in New Issue