From 3ea4b8a32aae87731e7915361072e5e9b423229b Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Thu, 13 Apr 2023 16:37:26 +0200 Subject: [PATCH] Remove Firefox workaround from setUpStream. This is no longer needed since version 110. --- static/galene.js | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/static/galene.js b/static/galene.js index 9babef8..436743a 100644 --- a/static/galene.js +++ b/static/galene.js @@ -1265,25 +1265,6 @@ function setUpStream(c, stream) { streams: [stream], sendEncodings: encodings, }); - - // Firefox workaround - function match(a, b) { - if(!a || !b) - return false; - if(a.length !== b.length) - return false; - for(let i = 0; i < a.length; i++) { - if(a.maxBitrate !== b.maxBitrate) - return false; - } - return true; - } - - let p = tr.sender.getParameters(); - if(!p || !match(p.encodings, encodings)) { - p.encodings = encodings; - tr.sender.setParameters(p); - } } // c.stream might be different from stream if there's a filter