diff options
author | metamuffin <metamuffin@disroot.org> | 2022-09-11 14:07:43 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2022-09-11 14:07:43 +0200 |
commit | ed13a5e0e3ee1885c17f24d9f47a79915db3daea (patch) | |
tree | a6339f61061204e44f9fa37dafb968b06515c69b /client-web | |
parent | 537a237e4a04f18c59d91ca592984e46d99296d2 (diff) | |
download | keks-meet-ed13a5e0e3ee1885c17f24d9f47a79915db3daea.tar keks-meet-ed13a5e0e3ee1885c17f24d9f47a79915db3daea.tar.bz2 keks-meet-ed13a5e0e3ee1885c17f24d9f47a79915db3daea.tar.zst |
blob
Diffstat (limited to 'client-web')
-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 => { |