Skip to content

Commit ae23d4f

Browse files
add: open relay turn server
1 parent 5713b59 commit ae23d4f

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

apps/web/src/components/pair-room-content.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export function PairRoomContent({
7171
const localVideoRef = useRef<HTMLVideoElement>(null);
7272

7373

74-
// more info: https://gist.github.com/sagivo/3a4b2f2c7ac6e1b5267c2f1f59ac6c6b
74+
// more info: https://stackoverflow.com/a/75734789/17825147
7575
const rtcConfig = {
7676
iceServers: [
7777
{
@@ -83,7 +83,18 @@ export function PairRoomContent({
8383
"stun:stun4.l.google.com:19302",
8484
],
8585
},
86+
{
87+
urls: "turn:openrelay.metered.ca:80",
88+
username: "openrelayproject",
89+
credential: "openrelayproject",
90+
},
91+
{
92+
urls: "turn:openrelay.metered.ca:443",
93+
username: "openrelayproject",
94+
credential: "openrelayproject",
95+
}
8696
],
97+
iceCandidatePoolSize: 10
8798
};
8899

89100
useEffect(() => {

0 commit comments

Comments
 (0)