fix: add STUN server for WebRTC NAT traversal
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
7b9362756d
commit
a5c5041ec8
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user