mirror of
https://github.com/jech/galene.git
synced 2024-11-09 02:05:59 +01:00
Simpler Firefox workaround in addUpTrack.
Rather than trying to determine whether the workaround is needed, we now perform it unconditionally, and ignore the resulting exception on non-broken browsers.
This commit is contained in:
parent
3ea4b8a32a
commit
7f93aa5dc8
1 changed files with 11 additions and 0 deletions
|
@ -1265,6 +1265,17 @@ function setUpStream(c, stream) {
|
|||
streams: [stream],
|
||||
sendEncodings: encodings,
|
||||
});
|
||||
|
||||
// Firefox before 110 does not implement sendEncodings, and
|
||||
// requires this hack, which throws an exception on Chromium.
|
||||
try {
|
||||
let p = tr.sender.getParameters();
|
||||
if(!p.encodings) {
|
||||
p.encodings = encodings;
|
||||
tr.sender.setParameters(p);
|
||||
}
|
||||
} catch(e) {
|
||||
}
|
||||
}
|
||||
|
||||
// c.stream might be different from stream if there's a filter
|
||||
|
|
Loading…
Reference in a new issue