Commit d798cfec authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix simulcast statistics display for Firefox.

Firefox doesn't include the rid in the statistics result.
Use the SSID instead.
parent 148c49d2
......@@ -1310,8 +1310,9 @@ Stream.prototype.updateStats = async function() {
for(let r of report.values()) {
if(stid && r.type === 'outbound-rtp') {
let id = stid;
if(r.rid)
id = id + '-' + r.rid
// Firefox doesn't implement rid, use ssrc
// to discriminate simulcast tracks.
id = id + '-' + r.ssrc;
if(!('bytesSent' in r))
continue;
if(!stats[id])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment