diff options
-rw-r--r-- | client-web/source/index.ts | 1 | ||||
-rw-r--r-- | client-web/source/user/remote.ts | 1 |
2 files changed, 2 insertions, 0 deletions
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 => { |