1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-12-22 23:35:46 +01:00

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

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