Use padding for probing (#434)

* WIP commit

* WIP commit

* WIP commit

* WIP commit

* WIP commit

* WIP commit

* WIP commit

* WIP commit

* Clean up

* Remove debug

* Remove unneeded change

* fix test

* Remove incorrect comment

* Reset probe after estimate trends down
This commit is contained in:
Raja Subramanian
2022-02-17 11:03:23 +05:30
committed by GitHub
parent c534099e3a
commit 0bbed7f0bd
11 changed files with 690 additions and 207 deletions
+12 -3
View File
@@ -24,6 +24,13 @@ var DefaultStunServers = []string{
"stun1.l.google.com:19302",
}
type CongestionControlProbeMode string
const (
CongestionControlProbeModePadding CongestionControlProbeMode = "padding"
CongestionControlProbeModeMedia = "media"
)
type Config struct {
Port uint32 `yaml:"port"`
PrometheusPort uint32 `yaml:"prometheus_port,omitempty"`
@@ -86,9 +93,10 @@ type PLIThrottleConfig struct {
}
type CongestionControlConfig struct {
Enabled bool `yaml:"enabled"`
AllowPause bool `yaml:"allow_pause"`
UseSendSideBWE bool `yaml:"send_side_bandwidth_estimation,omitempty"`
Enabled bool `yaml:"enabled"`
AllowPause bool `yaml:"allow_pause"`
UseSendSideBWE bool `yaml:"send_side_bandwidth_estimation,omitempty"`
ProbeMode CongestionControlProbeMode `yaml:"padding_mode,omitempty"`
}
type AudioConfig struct {
@@ -188,6 +196,7 @@ func NewConfig(confString string, c *cli.Context) (*Config, error) {
CongestionControl: CongestionControlConfig{
Enabled: true,
AllowPause: true,
ProbeMode: CongestionControlProbeModePadding,
},
},
Audio: AudioConfig{