mirror of
https://github.com/livekit/livekit.git
synced 2026-10-27 03:42:29 +00:00
Adopt WebRTCConfig from mediatransportutil (#1707)
This also adds support for inline fields in ToCLIFlagNames
This commit is contained in:
1 parent
b61fad339f
commit
4244542840
10 files changed
+57
-684
No files matched your search
@@ -19,6 +19,7 @@ import (
|
||||
"go.uber.org/atomic"
|
||||
"google.golang.org/protobuf/proto"
|
||||
|
||||
"github.com/livekit/mediatransportutil/pkg/rtcconfig"
|
||||
"github.com/livekit/protocol/livekit"
|
||||
"github.com/livekit/protocol/logger"
|
||||
|
||||
@@ -120,7 +121,9 @@ func NewRTCClient(conn *websocket.Conn) (*RTCClient, error) {
|
||||
c.ctx, c.cancel = context.WithCancel(context.Background())
|
||||
|
||||
conf := rtc.WebRTCConfig{
|
||||
Configuration: rtcConf,
|
||||
WebRTCConfig: rtcconfig.WebRTCConfig{
|
||||
Configuration: rtcConf,
|
||||
},
|
||||
}
|
||||
conf.SettingEngine.SetLite(false)
|
||||
conf.SettingEngine.SetAnsweringDTLSRole(webrtc.DTLSRoleClient)
|
||||
|
||||
Reference in new issue
Block a user