mirror of
https://github.com/xtr-dev/rondevu-demo.git
synced 2025-12-10 02:43:23 +00:00
Remove STUN server, increase ICE candidate pool
This commit is contained in:
@@ -6,10 +6,7 @@ const API_URL = 'https://api.ronde.vu';
|
|||||||
|
|
||||||
const RTC_CONFIG = {
|
const RTC_CONFIG = {
|
||||||
iceServers: [
|
iceServers: [
|
||||||
{
|
// TCP transport to TURN server - VPN blocks UDP connections to TURN
|
||||||
urls: "stun:stun.relay.metered.ca:80",
|
|
||||||
},
|
|
||||||
// TCP transport only - VPN blocks UDP relay
|
|
||||||
{
|
{
|
||||||
urls: "turn:standard.relay.metered.ca:80?transport=tcp",
|
urls: "turn:standard.relay.metered.ca:80?transport=tcp",
|
||||||
username: "c53a9c971da5e6f3bc959d8d",
|
username: "c53a9c971da5e6f3bc959d8d",
|
||||||
@@ -22,7 +19,8 @@ const RTC_CONFIG = {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
// Force relay to avoid direct connection attempts through VPN
|
// Force relay to avoid direct connection attempts through VPN
|
||||||
iceTransportPolicy: 'relay'
|
iceTransportPolicy: 'relay',
|
||||||
|
iceCandidatePoolSize: 10
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function App() {
|
export default function App() {
|
||||||
|
|||||||
Reference in New Issue
Block a user