mirror of
https://github.com/jech/galene.git
synced 2024-11-22 16:45:58 +01:00
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:
parent
148c49d253
commit
d798cfec75
1 changed files with 3 additions and 2 deletions
|
@ -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])
|
||||||
|
|
Loading…
Reference in a new issue