Move TURNServers back to livekit-server (#1715)
This commit is contained in:
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user