1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-12-22 15:25:48 +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:
Juliusz Chroboczek 2022-03-20 22:30:44 +01:00
parent 148c49d253
commit d798cfec75

View file

@ -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])