1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-09 18:25:58 +01:00

Enable Trickle ICE.

This commit is contained in:
Juliusz Chroboczek 2020-04-27 03:06:45 +02:00
parent d24aafd314
commit 4cebaa6dc2

View file

@ -116,6 +116,8 @@ func addGroup(name string, desc *groupDescription) (*group, error) {
if groups.groups == nil {
groups.groups = make(map[string]*group)
s := webrtc.SettingEngine{}
s.SetTrickle(true);
m := webrtc.MediaEngine{}
m.RegisterCodec(webrtc.NewRTPVP8CodecExt(
webrtc.DefaultPayloadTypeVP8, 90000,
@ -129,6 +131,7 @@ func addGroup(name string, desc *groupDescription) (*group, error) {
webrtc.DefaultPayloadTypeOpus, 48000,
))
groups.api = webrtc.NewAPI(
webrtc.WithSettingEngine(s),
webrtc.WithMediaEngine(m),
)
}