Dependent RTT/jitter control. (#1537)

This commit is contained in:
Raja Subramanian
2023-03-22 11:59:32 +05:30
committed by GitHub
parent f782c8956d
commit e7c5872758
5 changed files with 105 additions and 28 deletions
+11 -7
View File
@@ -21,11 +21,13 @@ const (
)
type ConnectionStatsParams struct {
UpdateInterval time.Duration
MimeType string
IsFECEnabled bool
GetDeltaStats func() map[uint32]*buffer.StreamStatsWithLayers
Logger logger.Logger
UpdateInterval time.Duration
MimeType string
IsFECEnabled bool
IsDependentRTT bool
IsDependentJitter bool
GetDeltaStats func() map[uint32]*buffer.StreamStatsWithLayers
Logger logger.Logger
}
type ConnectionStats struct {
@@ -49,8 +51,10 @@ func NewConnectionStats(params ConnectionStatsParams) *ConnectionStats {
return &ConnectionStats{
params: params,
scorer: newQualityScorer(qualityScorerParams{
PacketLossWeight: getPacketLossWeight(params.MimeType, params.IsFECEnabled), // LK-TODO: have to notify codec change?
Logger: params.Logger,
PacketLossWeight: getPacketLossWeight(params.MimeType, params.IsFECEnabled), // LK-TODO: have to notify codec change?
IsDependentRTT: params.IsDependentRTT,
IsDependentJitter: params.IsDependentJitter,
Logger: params.Logger,
}),
done: core.NewFuse(),
}