mirror of
https://github.com/jech/galene.git
synced 2024-11-09 18:25:58 +01:00
Disable simulcast on Firefox by default.
Simulcast interacts strangely with VP9.
This commit is contained in:
parent
4f37c28467
commit
bb0a01895e
2 changed files with 10 additions and 0 deletions
1
CHANGES
1
CHANGES
|
@ -1,6 +1,7 @@
|
||||||
Galene 0.8 (unreleased)
|
Galene 0.8 (unreleased)
|
||||||
|
|
||||||
* Change default video codec to VP9.
|
* Change default video codec to VP9.
|
||||||
|
* Disable simulcast on Firefox by default.
|
||||||
|
|
||||||
9 July 2023: Galene 0.7.2
|
9 July 2023: Galene 0.7.2
|
||||||
|
|
||||||
|
|
|
@ -280,6 +280,11 @@ function isSafari() {
|
||||||
return ua.indexOf('safari') >= 0 && ua.indexOf('chrome') < 0;
|
return ua.indexOf('safari') >= 0 && ua.indexOf('chrome') < 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function isFirefox() {
|
||||||
|
let ua = navigator.userAgent.toLowerCase();
|
||||||
|
return ua.indexOf('firefox') >= 0;
|
||||||
|
}
|
||||||
|
|
||||||
/** @type {MediaStream} */
|
/** @type {MediaStream} */
|
||||||
let safariStream = null;
|
let safariStream = null;
|
||||||
|
|
||||||
|
@ -3918,6 +3923,10 @@ async function start() {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Disable simulcast on Firefox by default, it's buggy.
|
||||||
|
if(isFirefox())
|
||||||
|
getSelectElement('simulcastselect').value = 'off';
|
||||||
|
|
||||||
let parms = new URLSearchParams(window.location.search);
|
let parms = new URLSearchParams(window.location.search);
|
||||||
if(window.location.search)
|
if(window.location.search)
|
||||||
window.history.replaceState(null, '', window.location.pathname);
|
window.history.replaceState(null, '', window.location.pathname);
|
||||||
|
|
Loading…
Reference in a new issue