From 3ee3df77b88e23e7e9425ba6885597e53ff60e93 Mon Sep 17 00:00:00 2001 From: mofeng-git Date: Tue, 5 May 2026 01:19:17 +0800 Subject: [PATCH] =?UTF-8?q?chroe:=20=E4=B8=8D=E5=86=8D=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=20iceCandidatePoolSize=EF=BC=8C=E6=B2=BF=E7=94=A8=E6=B5=8F?= =?UTF-8?q?=E8=A7=88=E5=99=A8=E9=BB=98=E8=AE=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/composables/useWebRTC.ts | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/web/src/composables/useWebRTC.ts b/web/src/composables/useWebRTC.ts index 3f4c9c66..6fa44f4c 100644 --- a/web/src/composables/useWebRTC.ts +++ b/web/src/composables/useWebRTC.ts @@ -128,13 +128,6 @@ function setConnectStage(stage: WebRTCConnectStage, details?: unknown) { videoDebugLog(`WebRTC stage -> ${stage}`, details) } -function getIceCandidatePoolSize(): number { - if (typeof window === 'undefined') return 0 - const icePoolParam = new URLSearchParams(window.location.search).get('ice_pool') - if (icePoolParam === null) return 0 - return Math.max(0, Number.parseInt(icePoolParam, 10) || 0) -} - function summarizeIceCandidate(candidate: RTCIceCandidate | IceCandidate | RTCIceCandidateInit | null) { if (!candidate) return null const candidateLine = candidate.candidate ?? '' @@ -158,10 +151,7 @@ function summarizeIceCandidate(candidate: RTCIceCandidate | IceCandidate | RTCIc } function createPeerConnection(iceServers: RTCIceServer[]): RTCPeerConnection { - const config: RTCConfiguration = { - iceServers, - iceCandidatePoolSize: getIceCandidatePoolSize(), - } + const config: RTCConfiguration = { iceServers } const pc = new RTCPeerConnection(config)