Set DtxDisabled from TrackInfo in score calculation. (#770)

* Set DtxDisabled from TrackInfo in score calculation.

Also, fix sending connection quality upate on a new subscription.

* comments tweaks

* Move TrackInfo into StreamTrackerManager as this is used by cloud as well
This commit is contained in:
Raja Subramanian
2022-06-19 21:12:09 +05:30
committed by GitHub
parent 227247b012
commit 62943f2096
6 changed files with 109 additions and 83 deletions
+4 -8
View File
@@ -222,14 +222,10 @@ func NewDownTrack(
d.forwarder = NewForwarder(d.kind, d.logger)
d.connectionStats = connectionquality.NewConnectionStats(connectionquality.ConnectionStatsParams{
CodecType: kind,
GetDeltaStats: d.getDeltaStats,
GetLayerDimension: func(layer int32) (uint32, uint32) {
if d.receiver != nil {
return d.receiver.GetLayerDimension(layer)
}
return 0, 0
},
CodecType: kind,
GetDeltaStats: d.getDeltaStats,
IsDtxDisabled: d.receiver.IsDtxDisabled,
GetLayerDimension: d.receiver.GetLayerDimension,
// RAJA-TODO: Check muted, test quality when muted
// RAJA-TODO: this one needs more work as layers are muxed into one layer, maybe need to maitain RTP stats separately for each layer
GetMaxExpectedLayer: func() *livekit.VideoLayer {