mirror of
https://github.com/jech/galene.git
synced 2024-12-22 23:35:46 +01:00
Enable Trickle ICE.
This commit is contained in:
parent
d24aafd314
commit
4cebaa6dc2
1 changed files with 3 additions and 0 deletions
3
group.go
3
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),
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue