Don't set rid when not simulcasting.
It turns out that the bandwidth limitation is not effective in Firefox when the rid is set unless we're simulcasting.
This commit is contained in:
+12
-5
@@ -1189,16 +1189,23 @@ function setUpStream(c, stream) {
|
|||||||
let simulcast = doSimulcast();
|
let simulcast = doSimulcast();
|
||||||
if(t.kind === 'video') {
|
if(t.kind === 'video') {
|
||||||
let bps = getMaxVideoThroughput();
|
let bps = getMaxVideoThroughput();
|
||||||
encodings.push({
|
// Firefox doesn't like us setting the RID if we're not
|
||||||
rid: 'h',
|
// simulcasting.
|
||||||
maxBitrate: bps || unlimitedRate,
|
if(simulcast) {
|
||||||
});
|
encodings.push({
|
||||||
if(simulcast)
|
rid: 'h',
|
||||||
|
maxBitrate: bps || unlimitedRate,
|
||||||
|
});
|
||||||
encodings.push({
|
encodings.push({
|
||||||
rid: 'l',
|
rid: 'l',
|
||||||
scaleResolutionDownBy: 2,
|
scaleResolutionDownBy: 2,
|
||||||
maxBitrate: simulcastRate,
|
maxBitrate: simulcastRate,
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
encodings.push({
|
||||||
|
maxBitrate: bps || unlimitedRate,
|
||||||
|
});
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if(c.label !== 'camera' || settings.hqaudio) {
|
if(c.label !== 'camera' || settings.hqaudio) {
|
||||||
encodings.push({
|
encodings.push({
|
||||||
|
|||||||
Reference in New Issue
Block a user