sfu node always pick ice controlled role(lite) (#322)
* sfu node always pick ice controlled role(lite) * fix test case Co-authored-by: cnderrauber <zengjie9004@gmail.com>
This commit is contained in:
co-authored by
cnderrauber
parent
9d74d99fed
commit
54e13d20bb
@@ -62,6 +62,7 @@ func NewWebRTCConfig(conf *config.Config, externalIP string) (*WebRTCConfig, err
|
|||||||
s := webrtc.SettingEngine{
|
s := webrtc.SettingEngine{
|
||||||
LoggerFactory: serverlogger.LoggerFactory(),
|
LoggerFactory: serverlogger.LoggerFactory(),
|
||||||
}
|
}
|
||||||
|
s.SetLite(true)
|
||||||
|
|
||||||
if externalIP != "" {
|
if externalIP != "" {
|
||||||
s.SetNAT1To1IPs([]string{externalIP}, webrtc.ICECandidateTypeHost)
|
s.SetNAT1To1IPs([]string{externalIP}, webrtc.ICECandidateTypeHost)
|
||||||
|
|||||||
@@ -126,6 +126,8 @@ func NewRTCClient(conn *websocket.Conn) (*RTCClient, error) {
|
|||||||
conf := rtc.WebRTCConfig{
|
conf := rtc.WebRTCConfig{
|
||||||
Configuration: rtcConf,
|
Configuration: rtcConf,
|
||||||
}
|
}
|
||||||
|
conf.SettingEngine.SetLite(false)
|
||||||
|
conf.SettingEngine.SetAnsweringDTLSRole(webrtc.DTLSRoleClient)
|
||||||
codecs := []*livekit.Codec{
|
codecs := []*livekit.Codec{
|
||||||
{
|
{
|
||||||
Mime: "audio/opus",
|
Mime: "audio/opus",
|
||||||
|
|||||||
Reference in New Issue
Block a user