From c3c4952abfd9bf773b81702149d8324fb91813ea Mon Sep 17 00:00:00 2001 From: Filipi Fuchter Date: Tue, 29 Apr 2025 11:34:58 -0300 Subject: [PATCH] Reducing the timeout to 2 seconds for gathering the ice candidates. --- examples/p2p-webrtc/voice-agent/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/p2p-webrtc/voice-agent/index.html b/examples/p2p-webrtc/voice-agent/index.html index ddc873398..e0250a58f 100644 --- a/examples/p2p-webrtc/voice-agent/index.html +++ b/examples/p2p-webrtc/voice-agent/index.html @@ -24,7 +24,7 @@ let connected = false let peerConnection = null - const waitForIceGatheringComplete = async (pc, timeoutMs = 5000) => { + const waitForIceGatheringComplete = async (pc, timeoutMs = 2000) => { if (pc.iceGatheringState === 'complete') return; console.log("Waiting for ICE gathering to complete..."); return new Promise((resolve) => {