Move TURNServers back to livekit-server (#1715)

This commit is contained in:
Benjamin Pracht
2023-05-17 15:24:17 -07:00
committed by GitHub
parent 1c88a03366
commit f401c44a46
3 changed files with 13 additions and 3 deletions
+10
View File
@@ -69,6 +69,8 @@ type Config struct {
type RTCConfig struct {
rtcconfig.RTCConfig `yaml:",inline"`
TURNServers []TURNServer `yaml:"turn_servers,omitempty"`
StrictACKs bool `yaml:"strict_acks,omitempty"`
// Number of packets to buffer for NACK
@@ -92,6 +94,14 @@ type RTCConfig struct {
AllowTimestampAdjustment *bool `yaml:"allow_timestamp_adjustment,omitempty"`
}
type TURNServer struct {
Host string `yaml:"host"`
Port int `yaml:"port"`
Protocol string `yaml:"protocol"`
Username string `yaml:"username,omitempty"`
Credential string `yaml:"credential,omitempty"`
}
type PLIThrottleConfig struct {
LowQuality time.Duration `yaml:"low_quality,omitempty"`
MidQuality time.Duration `yaml:"mid_quality,omitempty"`