From 9a0c830a59de1d371e8a302c0f3af7fd65b0d595 Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Thu, 3 Sep 2020 19:56:23 +0200 Subject: [PATCH] Fix setting of send bitrate for Firefox. Thanks to Ines Klimann. --- static/sfu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/sfu.js b/static/sfu.js index dbf1a7d..29ed2d1 100644 --- a/static/sfu.js +++ b/static/sfu.js @@ -336,7 +336,7 @@ async function setMaxVideoThroughput(c, bps) { continue; let p = s.getParameters(); if(!p.encodings) - continue; + p.encodings = [{}]; p.encodings.forEach(e => { if(bps > 0) e.maxBitrate = bps;