checkpoint

This commit is contained in:
David Zhao
2020-10-23 00:12:33 -07:00
parent 40c7d902d8
commit 71d3a470f5
11 changed files with 532 additions and 28 deletions
+5 -16
View File
@@ -16,21 +16,13 @@ type Config struct {
}
type RTCConfig struct {
ICEPortRangeStart uint32 `yaml:"port_range_start"`
ICEPortRangeEnd uint32 `yaml:"port_range_end"`
ICEPortRangeStart uint16 `yaml:"port_range_start"`
ICEPortRangeEnd uint16 `yaml:"port_range_end"`
StunServers []string `yaml:"stun_servers"`
UseExternalIP bool `yaml:"use_external_ip"`
MaxBandwidth uint64 `yaml:"max_bandwidth"`
MaxNackTime int64 `yaml:"max_nack_time"`
Video WebRTCVideoConfig `yaml:"video"`
}
type WebRTCVideoConfig struct {
REMBFeedback bool `yaml:"remb_feedback"`
REMBCycle int `yaml:"remb_cycle"`
PLICycle int `yaml:"pli_cycle"`
TCCCycle int `yaml:"tcc_cycle"`
MaxBufferTime int `yaml:"max_buffer_time"`
MaxBandwidth uint64 `yaml:"max_bandwidth"`
MaxBufferTime int `yaml:"max_buffer_time"`
}
func NewConfig(confString string) (*Config, error) {
@@ -44,9 +36,6 @@ func NewConfig(confString string) (*Config, error) {
StunServers: []string{
"stun.l.google.com:19302",
},
Video: WebRTCVideoConfig{
REMBFeedback: true,
},
},
}
if confString != "" {