Fix simulcast statistics display for Firefox.
Firefox doesn't include the rid in the statistics result. Use the SSID instead.
This commit is contained in:
+3
-2
@@ -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])
|
||||||
|
|||||||
Reference in New Issue
Block a user