Reducing the timeout to 2 seconds for gathering the ice candidates.
This commit is contained in:
@@ -24,7 +24,7 @@
|
|||||||
let connected = false
|
let connected = false
|
||||||
let peerConnection = null
|
let peerConnection = null
|
||||||
|
|
||||||
const waitForIceGatheringComplete = async (pc, timeoutMs = 5000) => {
|
const waitForIceGatheringComplete = async (pc, timeoutMs = 2000) => {
|
||||||
if (pc.iceGatheringState === 'complete') return;
|
if (pc.iceGatheringState === 'complete') return;
|
||||||
console.log("Waiting for ICE gathering to complete...");
|
console.log("Waiting for ICE gathering to complete...");
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user