muaz-khan / WebRTC-Experiment

WebRTC, WebRTC and WebRTC. Everything here is all about WebRTC!!
https://www.webrtc-experiment.com/
MIT License
11.74k stars 3.95k forks source link

Pluginfree-Screen-Sharing not working (your demo, or separate site) #617

Open Proxying opened 5 years ago

Proxying commented 5 years ago

Hey, I've been taking a look at your demo for plugin free screen sharing and I cannot get the demo to work correctly with users that are on different networks, or are far apart (E.g. Someone in the UK hosting a room and someone in the US/CA trying to view or vice versa)

The video seems to just constantly be loading, and the only thing that is being logged to console is;

adding candidate candidate:3511702143 1 udp 2113937151 {ip} 49421 typ host generation 0 ufrag uwwl network-cost 999

When I run the demo and have someone in the UK host and someone nearby (in the next room, or the same PC) it works fine and we can view the others screen perfectly. So it seems like data loss, or something preventing data travelling across larger distances?

Anything I can do to resolve this in my setup, if it's something you've encountered before but don't wish to change in the demo?

(A working console log shows this;

adding candidate candidate:2118030696 1 tcp 1518275327 {ip} 9 typ host tcptype active generation 0 ufrag Pj9q network-id 2 network-cost 50)

With a network-cost of 50, so I assume the 999 network-cost above is just the visual cap and it's actually above that, preventing the demo from working.

Nomannazir commented 5 years ago

sir, are you solved this issue??

Proxying commented 5 years ago

no, it is still unsolved.