Send regressed codec upstream stats to analytics. (#3532)

* Send regressed codec upstream stats to analytics.

There is more work to do for analytics for simulcast codec, i. e. when
both codecs are published. Shorter term, ensure that analytics are sent
for regressed codec if active.

* lock access to regressed codec received
This commit is contained in:
Raja Subramanian
2025-03-18 12:46:24 +05:30
committed by GitHub
parent 8eb81388e6
commit fe673bb257
2 changed files with 21 additions and 9 deletions
+1
View File
@@ -255,6 +255,7 @@ func coalesce(stats []*livekit.AnalyticsStat) *livekit.AnalyticsStat {
MinScore: minScore,
MedianScore: utils.MedianFloat32(scores),
Streams: []*livekit.AnalyticsStream{coalescedStream},
Mime: stats[len(stats)-1].Mime, // use the latest Mime
}
numScores := len(scores)
if numScores > 0 {