mirror of
https://github.com/jech/galene.git
synced 2024-11-09 02:05:59 +01:00
Remove Firefox workaround from setUpStream.
This is no longer needed since version 110.
This commit is contained in:
parent
3b0468db50
commit
3ea4b8a32a
1 changed files with 0 additions and 19 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue