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

Current code only works when both users are on the same device #21

Open
Fritswp opened this issue Mar 5, 2024 · 3 comments
Open

Current code only works when both users are on the same device #21

Fritswp opened this issue Mar 5, 2024 · 3 comments

Comments

@Fritswp
Copy link

Fritswp commented Mar 5, 2024

Hi, the current code seems to work only when both users are on the same device.

For example using localhost and the ip adress on the same device shows both screens whereas using two devices in a local environment only shows the local streams

@williamdaugherty
Copy link

williamdaugherty commented Jun 28, 2024

Hello, try setting up TURN servers in addition to STUN servers.

@sostenesapollo
Copy link

@williamdaugherty how can we do that ?

@williamdaugherty
Copy link

@sostenesapollo
const servers = {
iceServers: [
{
urls: ['stun:stun1.l.google.com:19302', 'stun:stun2.l.google.com:19302'],
},
{
urls: 'turn:YOUR_TURN_SERVER_URL', // Replace with your TURN server URL
username: 'YOUR_USERNAME', // Replace with your TURN server username
credential: 'YOUR_CREDENTIAL', // Replace with your TURN server password
},
],
iceCandidatePoolSize: 10,
};

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

3 participants