A simple configuration for congestion control. (#305)
This commit is contained in:
@@ -65,6 +65,8 @@ type RTCConfig struct {
|
||||
|
||||
// Which side runs bandwidth estimation
|
||||
UseSendSideBWE bool `yaml:"send_side_bandwidth_estimation"`
|
||||
|
||||
CongestionControl CongestionControlConfig `yaml:"congestion_control"`
|
||||
}
|
||||
|
||||
type PLIThrottleConfig struct {
|
||||
@@ -73,6 +75,11 @@ type PLIThrottleConfig struct {
|
||||
HighQuality time.Duration `yaml:"high_quality"`
|
||||
}
|
||||
|
||||
type CongestionControlConfig struct {
|
||||
Enabled bool `yaml:"enabled"`
|
||||
AllowPause bool `yaml:"allow_pause"`
|
||||
}
|
||||
|
||||
type AudioConfig struct {
|
||||
// minimum level to be considered active, 0-127, where 0 is loudest
|
||||
ActiveLevel uint8 `yaml:"active_level"`
|
||||
@@ -158,6 +165,10 @@ func NewConfig(confString string, c *cli.Context) (*Config, error) {
|
||||
MidQuality: time.Second,
|
||||
HighQuality: time.Second,
|
||||
},
|
||||
CongestionControl: CongestionControlConfig{
|
||||
Enabled: true,
|
||||
AllowPause: true,
|
||||
},
|
||||
},
|
||||
Audio: AudioConfig{
|
||||
ActiveLevel: 30, // -30dBov = 0.03
|
||||
|
||||
Reference in New Issue
Block a user