tom-james-watson / p2p.chat

p2p video conferencing powered by WebRTC.
MIT License
686 stars 134 forks source link

Intermittent failure to finish joining #57

Open wolfgang42 opened 1 year ago

wolfgang42 commented 1 year ago

I just had a go at using p2p.chat with someone, and we had some trouble getting connected. They were using Firefox, and I tried both Firefox and Chromium.

Most of the time, when one of us joined the room, we’d each see a spinner for the other person which didn’t stop spinning before we gave up and tried again (usually a few tens of seconds later, but I think we left it for a few minutes once); a couple of times I rejoined and they could hear and see me but I still had a spinner and couldn’t see or hear them.

One time I refreshed and the connection worked; the sound quality was much better than our usual service and it was marvelous (until I refreshed the page, which proved to be a mistake since we never got it working again) so we’d very much like to figure out what the problem was. One weird thing is that I looked in Wireshark and observed our computers exchanging lots of UDP packets, so it seems like the connection was getting set up fine and I assume we were sending audio, but I guess for some reason the webapp wasn’t noticing that the connection had been established.

If you have any advice on debugging this, I’d appreciate it; I’ve never worked with WebRTC before but like I said the brief time we got to use it was great and we’d very much like to do so again.