peers / peerjs

Simple peer-to-peer with WebRTC.
https://peerjs.com
MIT License
12.38k stars 1.43k forks source link

ICE Connection state disconnected #518

Closed RamyaAshika closed 5 years ago

RamyaAshika commented 5 years ago

Hi, I have shared my video streams. I display my webcam and my partner. Everything works fine until the 30 seconds. Then, the connection is lost. In chrome console gives me the following:

Always occurs at 25-30 seconds. Can you think of what could be the fault? @afrokick @kidandcat

afrokick commented 5 years ago

Which version of peerjs?

RamyaAshika commented 5 years ago
@afrokick
afrokick commented 5 years ago

I think the issue in transport level, not in library.

disconnected: Checks to ensure that components are still connected failed for at least one component of the RTCPeerConnection. This is a less stringent test than "failed" and may trigger intermittently and resolve just as spontaneously on less reliable networks, or during temporary disconnections. When the problem resolves, the connection may return to the "connected" state.

Maybe you have problems with routers? could you please check examples like jitsi chat and check webrtc-internals?

RamyaAshika commented 5 years ago

Okay, but when can I expect the latest stable version of peerjs @kidandcat @afrokick or else what I need to do to have a stable connection atleast for 30-40mins?? I'm in urge.

Thanks

afrokick commented 5 years ago

@RamyaAshika could you please check the latest release?

jrowny commented 4 years ago

I think the issue is that the negotiator closes the connection when it disconnects, but it shouldn't because it's recoverable. I'm going to put together a PR to stop this behaviour.