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() { ...@@ -1310,8 +1310,9 @@ Stream.prototype.updateStats = async function() {
for(let r of report.values()) { for(let r of report.values()) {
if(stid && r.type === 'outbound-rtp') { if(stid && r.type === 'outbound-rtp') {
let id = stid; let id = stid;
if(r.rid) // Firefox doesn't implement rid, use ssrc
id = id + '-' + r.rid // to discriminate simulcast tracks.
id = id + '-' + r.ssrc;
if(!('bytesSent' in r)) if(!('bytesSent' in r))
continue; continue;
if(!stats[id]) 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