1
Fork 0

Remove Firefox workaround from setUpStream.

This is no longer needed since version 110.
This commit is contained in:
Juliusz Chroboczek 2023-04-13 16:37:26 +02:00
parent 3b0468db50
commit 3ea4b8a32a
1 changed files with 0 additions and 19 deletions

View File

@ -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