Reducing the timeout to 2 seconds for gathering the ice candidates.
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user