From 4cebaa6dc2a680ab8509f0714db2d01f54d149a2 Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Mon, 27 Apr 2020 03:06:45 +0200 Subject: [PATCH] Enable Trickle ICE. --- group.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/group.go b/group.go index 17173a2..4fc7c4f 100644 --- a/group.go +++ b/group.go @@ -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), ) }