Allow empty ice servers list
This commit is contained in:
parent
5a989a5c40
commit
959df9d7f1
@ -65,10 +65,6 @@ func (element *Muxer) NewPeerConnection(configuration webrtc.Configuration) (*we
|
||||
Credential: element.Options.ICECredential,
|
||||
CredentialType: webrtc.ICECredentialTypePassword,
|
||||
})
|
||||
} else {
|
||||
configuration.ICEServers = append(configuration.ICEServers, webrtc.ICEServer{
|
||||
URLs: []string{"stun:stun.l.google.com:19302"},
|
||||
})
|
||||
}
|
||||
m := &webrtc.MediaEngine{}
|
||||
if err := m.RegisterDefaultCodecs(); err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user