Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is p2p screen sharing still supported? #88

Open
jusahah opened this issue Dec 4, 2019 · 3 comments
Open

Is p2p screen sharing still supported? #88

jusahah opened this issue Dec 4, 2019 · 3 comments

Comments

@jusahah
Copy link

jusahah commented Dec 4, 2019

Hey,

first of all, great work with developing these extensions!

Lately however, desktopCapture-p2p has stopped working when used over public internet. I guess this is an issue with STUN/TURN, as the extension works perfectly when used over localhost or local network.

Issue

When using desktopCapture-p2p over public network, the connection is made (i.e extension shows that a viewer is present), but no video stream is shown in the viewer-side. On the viewer page, console is logged with messages like this:

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

This happens with latest versions of Chrome and Firefox.


Wondering if you have any tips or guide how to solve this?

Thanks.

@wyudong
Copy link

wyudong commented Dec 10, 2019

Have you got the solution?

@jusahah
Copy link
Author

jusahah commented Dec 10, 2019

No, I haven't. If anyone knows how to solve this, lets share. From what I've gathered from Google searches, this seems to be common problem for many people. :)

@wyudong
Copy link

wyudong commented Dec 10, 2019

I installed coturn today to replace the STUN/TURN from google with my own STUN/TURN.

This article may be helpful to install coturn. After coturn is installed, I have problem to check STUN/TURN in Chrome using this tool, however, it's OK for Firefox. I guess it's not the server's fault but the Chrome's (also found this issue). After you test the connection successfully in Firefox, continue to replace the STUN/TURN urls in desktopCapture-p2p code. Don't forget to check the urls in these three files:

  1. AntMediaWrapper.js
  2. IceServersHandler.js
  3. RTCMultiConnection.min.js

The extension only works when I use the IP of the STUN/TURN server, cannot use domain. If anyone can confirm that or know the reason, please let me know.

I also updated libs, RTCMultiConnection.min.js and socket.io.js to the latest version, but I think it's optional to solve the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants