CleverProgrammers / nodejs-zoom-clone

847 stars 484 forks source link

Not working when the attendee belongs to different network. #39

Closed 3009aksingh closed 3 years ago

3009aksingh commented 3 years ago

For me it did worked while I opened the same link in two tabs which means it works perfectly while attendees are in same network. But once I shared this to my friend who stays around 1km distance which is WAN I guess, we do get connected (I can see the black blank box for video ) but audio and video is not connected. Also, we can send text messages in real-time in the app but audio/video connection is not successful. I do get a black window when the new user enters but its completely black and I am sure that it's not an internet problem (audio / video both feature not working but text messaging working if both the parties belongs to different network). I tried to look for audio/video constraints in console and it shows empty which means the connection isn't successful, while for google meet session , google meet's audio and video constraints are visible. Please help me with this and thanks for your time.

3009aksingh commented 3 years ago

Actually I saw it again and got to know that we must have ice servers for that. On stack overflow you can get those answers. Those will help you out. Mine is working now. :)

3009aksingh commented 3 years ago

https://stackoverflow.com/questions/30742431/webrtc-on-isolated-lan-without-ice-stun-turn-server search for something like this, I read many posts and blogs before trying, then came to some conclusion about what to perform. To be true, instructor should have told us how to setup these required servers as it's complex to understand.

coder-68 commented 3 years ago

I am also facing the same problem. I read a few articles and the stack overflow link that was shared but still cannot wrap my head around it. @3009aksingh could you please share your code/ open a pull request? Help would be much appreciated.

3009aksingh commented 3 years ago

Actually, ice servers aren't working as of now I guess.

coder-68 commented 3 years ago

Why is that? You said your code works so I thought I'd ask.

3009aksingh commented 3 years ago

Yes , it was working, like I would say that it doesn't works regularly.