1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-12 19:55:59 +01:00

Fix setting of send bitrate for Firefox.

Thanks to Ines Klimann.
This commit is contained in:
Juliusz Chroboczek 2020-09-03 19:56:23 +02:00
parent c0122c069e
commit 9a0c830a59

View file

@ -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;