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

One country to another country not working #1054

Open
ajesh1234 opened this issue Nov 12, 2022 · 1 comment
Open

One country to another country not working #1054

ajesh1234 opened this issue Nov 12, 2022 · 1 comment

Comments

@ajesh1234
Copy link

Hi, Its working in same country network but if one user from india and another from other country then its not working and not showing any audio/video. Let me know pls if is required any changes in configuration

@MediaKitApp
Copy link

From what you mention it seems a Stun/Turn problem, you should configure your own server using for example: Coturn (With Ubuntu), then you use this code and modify it with your data:

// first step, ignore default STUN+TURN servers
connection.iceServers = [];

// second step, set STUN url
connection.iceServers.push({
    urls: 'stun:yourSTUN.com:port'
});

// last step, set TURN url (recommended)
connection.iceServers.push({
    urls: 'turn:yourTURN.com:port',
    credential: 'password',
    username: 'username'
});

connection.openOrJoin('your-room-id');

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