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;