From ed13a5e0e3ee1885c17f24d9f47a79915db3daea Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sun, 11 Sep 2022 14:07:43 +0200 Subject: blob --- client-web/source/index.ts | 1 + client-web/source/user/remote.ts | 1 + 2 files changed, 2 insertions(+) (limited to 'client-web/source') diff --git a/client-web/source/index.ts b/client-web/source/index.ts index f9f7a5e..432a7b7 100644 --- a/client-web/source/index.ts +++ b/client-web/source/index.ts @@ -14,6 +14,7 @@ export const ROOM_CONTAINER = ediv({ class: "room" }) export const RTC_CONFIG: RTCConfiguration = { // google stun!? iceServers: [{ urls: ["stun:stun1.l.google.com:19302", "stun:stun2.l.google.com:19302"] }], + // iceServers: [{ urls: ["stun:meet.metamuffin.org:16900"] }], iceCandidatePoolSize: 10, } diff --git a/client-web/source/user/remote.ts b/client-web/source/user/remote.ts index 48ab8e3..243279b 100644 --- a/client-web/source/user/remote.ts +++ b/client-web/source/user/remote.ts @@ -21,6 +21,7 @@ export class RemoteUser extends User { this.peer = new RTCPeerConnection(RTC_CONFIG) this.peer.onicecandidate = ev => { if (!ev.candidate) return + log("webrtc", `ICE candidate set`, ev.candidate) room.signaling.send_relay({ ice_candidate: ev.candidate.toJSON() }, this.id) } this.peer.ontrack = ev => { -- cgit v1.2.3-70-g09d2