From 7dd84ba803f9aa53cd9300391578327c48565be1 Mon Sep 17 00:00:00 2001 From: Philipp Hancke Date: Thu, 8 Sep 2022 13:20:24 +0200 Subject: [PATCH] trickle-ice: remove icecandidatepoolsize option since this makes no sense for this case as we only gather a single candidate immediately after creating the connection --- src/content/peerconnection/trickle-ice/index.html | 11 ++--------- src/content/peerconnection/trickle-ice/js/main.js | 7 ------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/src/content/peerconnection/trickle-ice/index.html b/src/content/peerconnection/trickle-ice/index.html index 4373bc16c7..9c2d7ece8c 100644 --- a/src/content/peerconnection/trickle-ice/index.html +++ b/src/content/peerconnection/trickle-ice/index.html @@ -101,18 +101,11 @@

ICE options

relay -
- - 0 - 0 - - 10 -
- +
-
+
diff --git a/src/content/peerconnection/trickle-ice/js/main.js b/src/content/peerconnection/trickle-ice/js/main.js index 1b21c39a54..b7906bca9d 100644 --- a/src/content/peerconnection/trickle-ice/js/main.js +++ b/src/content/peerconnection/trickle-ice/js/main.js @@ -17,7 +17,6 @@ const resetButton = document.querySelector('button#reset'); const servers = document.querySelector('select#servers'); const urlInput = document.querySelector('input#url'); const usernameInput = document.querySelector('input#username'); -const iceCandidatePoolInput = document.querySelector('input#iceCandidatePool'); const getUserMediaInput = document.querySelector('input#getUserMedia'); addButton.onclick = addServer; @@ -30,11 +29,6 @@ resetButton.onclick = (e) => { setDefaultServer(serversSelect); }; -iceCandidatePoolInput.onchange = (e) => { - const span = e.target.parentElement.querySelector('span'); - span.textContent = e.target.value; -}; - let begin; let pc; let stream; @@ -148,7 +142,6 @@ async function start() { const config = { iceServers: iceServers, iceTransportPolicy: iceTransports, - iceCandidatePoolSize: iceCandidatePoolInput.value }; const offerOptions = {offerToReceiveAudio: 1};