From a5c5041ec8cb7b61d89d9c536e230b04092b2843 Mon Sep 17 00:00:00 2001 From: Administrator Date: Thu, 12 Mar 2026 07:26:28 +0100 Subject: [PATCH] fix: add STUN server for WebRTC NAT traversal Co-Authored-By: Claude Opus 4.6 --- lib/remote-capture.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/remote-capture.html b/lib/remote-capture.html index c8afbdf..0b47b01 100644 --- a/lib/remote-capture.html +++ b/lib/remote-capture.html @@ -34,7 +34,9 @@ async function getCaptureStream() { async function handleOffer(clientId, offer, role) { const stream = await getCaptureStream(); - const pc = new RTCPeerConnection({ iceServers: [] }); + const pc = new RTCPeerConnection({ + iceServers: [{ urls: 'stun:stun.l.google.com:19302' }] + }); clients.set(clientId, { pc, role }); // Add video tracks