fix publisher frame count reporting for simulcast streams (#4457)
This commit is contained in:
@@ -348,7 +348,9 @@ func CondenseStat(stat *livekit.AnalyticsStat) (ps CondensedStat, ok bool) {
|
|||||||
ps.Bytes += stream.PrimaryBytes
|
ps.Bytes += stream.PrimaryBytes
|
||||||
ps.Packets += stream.PrimaryPackets
|
ps.Packets += stream.PrimaryPackets
|
||||||
ps.PacketsLost += stream.PacketsLost
|
ps.PacketsLost += stream.PacketsLost
|
||||||
ps.Frames += stream.Frames
|
if stream.Frames > ps.Frames {
|
||||||
|
ps.Frames = stream.Frames
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user