Fix setting of send bitrate for Firefox.
Thanks to Ines Klimann.
This commit is contained in:
+1
-1
@@ -336,7 +336,7 @@ async function setMaxVideoThroughput(c, bps) {
|
|||||||
continue;
|
continue;
|
||||||
let p = s.getParameters();
|
let p = s.getParameters();
|
||||||
if(!p.encodings)
|
if(!p.encodings)
|
||||||
continue;
|
p.encodings = [{}];
|
||||||
p.encodings.forEach(e => {
|
p.encodings.forEach(e => {
|
||||||
if(bps > 0)
|
if(bps > 0)
|
||||||
e.maxBitrate = bps;
|
e.maxBitrate = bps;
|
||||||
|
|||||||
Reference in New Issue
Block a user