mirror of
https://github.com/xtr-dev/rondevu-demo.git
synced 2025-12-10 02:43:23 +00:00
Add Google STUN servers for reliability
Added Google STUN servers alongside metered.ca for maximum reliability. Google STUN always works and ensures basic NAT traversal even if TURN servers fail. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -6,9 +6,14 @@ const API_URL = 'https://api.ronde.vu';
|
|||||||
|
|
||||||
const RTC_CONFIG = {
|
const RTC_CONFIG = {
|
||||||
iceServers: [
|
iceServers: [
|
||||||
|
// Google STUN - reliable and always works
|
||||||
|
{ urls: 'stun:stun.l.google.com:19302' },
|
||||||
|
{ urls: 'stun:stun1.l.google.com:19302' },
|
||||||
|
// Metered.ca STUN
|
||||||
{
|
{
|
||||||
urls: "stun:stun.relay.metered.ca:80",
|
urls: "stun:stun.relay.metered.ca:80",
|
||||||
},
|
},
|
||||||
|
// Metered.ca TURN servers (for restrictive NATs)
|
||||||
{
|
{
|
||||||
urls: "turn:standard.relay.metered.ca:80",
|
urls: "turn:standard.relay.metered.ca:80",
|
||||||
username: "e03a51621b4f11ffbed3addd",
|
username: "e03a51621b4f11ffbed3addd",
|
||||||
|
|||||||
Reference in New Issue
Block a user