From 71ad8a294f4a17478c1a8c960fbd734c8c697dcf Mon Sep 17 00:00:00 2001 From: Sergey Mankovsky Date: Wed, 11 Feb 2026 23:11:46 +0100 Subject: [PATCH] Fix webrtc connection --- www/app/(app)/transcripts/useWebRTC.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/www/app/(app)/transcripts/useWebRTC.ts b/www/app/(app)/transcripts/useWebRTC.ts index 89a2a946..79e8022c 100644 --- a/www/app/(app)/transcripts/useWebRTC.ts +++ b/www/app/(app)/transcripts/useWebRTC.ts @@ -23,7 +23,16 @@ const useWebRTC = ( let p: Peer; try { - p = new Peer({ initiator: true, stream: stream }); + p = new Peer({ + initiator: true, + stream: stream, + // Disable trickle ICE: single SDP exchange (offer + answer) with all candidates. + // Required for HTTP-based signaling; trickle needs WebSocket for candidate exchange. + trickle: false, + config: { + iceServers: [{ urls: "stun:stun.l.google.com:19302" }], + }, + }); } catch (error) { setError(error as Error, "Error creating WebRTC"); return;