Skip to content

Commit da7a990

Browse files
authored
Merge pull request #1572 from fippo/no-pool
trickle-ice: remove icecandidatepoolsize option
2 parents 3db6d79 + 61e76e1 commit da7a990

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

src/content/peerconnection/trickle-ice/index.html

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -101,18 +101,11 @@ <h2>ICE options</h2>
101101
<input type="radio" name="transports" value="relay" id="relay">
102102
<span>relay</span>
103103
</div>
104-
<div>
105-
<label>ICE Candidate Pool:</label>
106-
<span id="poolValue">0</span>
107-
<span class="gray">0</span>
108-
<input id="iceCandidatePool" type="range" min="0" max="10" value="0">
109-
<span class="gray">10</span>
110-
</div>
111104

112105
</section>
113-
106+
114107
<section>
115-
<div>
108+
<div>
116109
<input type="checkbox" name="getUserMedia" id="getUserMedia">
117110
<label for="getUserMedia"><span>Acquire microphone/camera permissions</span></label>
118111
</div>

src/content/peerconnection/trickle-ice/js/main.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ const resetButton = document.querySelector('button#reset');
1717
const servers = document.querySelector('select#servers');
1818
const urlInput = document.querySelector('input#url');
1919
const usernameInput = document.querySelector('input#username');
20-
const iceCandidatePoolInput = document.querySelector('input#iceCandidatePool');
2120
const getUserMediaInput = document.querySelector('input#getUserMedia');
2221

2322
addButton.onclick = addServer;
@@ -30,11 +29,6 @@ resetButton.onclick = (e) => {
3029
setDefaultServer(serversSelect);
3130
};
3231

33-
iceCandidatePoolInput.onchange = (e) => {
34-
const span = e.target.parentElement.querySelector('span');
35-
span.textContent = e.target.value;
36-
};
37-
3832
let begin;
3933
let pc;
4034
let stream;
@@ -148,7 +142,6 @@ async function start() {
148142
const config = {
149143
iceServers: iceServers,
150144
iceTransportPolicy: iceTransports,
151-
iceCandidatePoolSize: iceCandidatePoolInput.value
152145
};
153146

154147
const offerOptions = {offerToReceiveAudio: 1};

0 commit comments

Comments
 (0)