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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user