Commit 3ea4b8a3 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Remove Firefox workaround from setUpStream.

This is no longer needed since version 110.
parent 3b0468db
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment