mirror of
https://github.com/jech/galene.git
synced 2024-11-22 16:45:58 +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 {
|
if groups.groups == nil {
|
||||||
groups.groups = make(map[string]*group)
|
groups.groups = make(map[string]*group)
|
||||||
|
s := webrtc.SettingEngine{}
|
||||||
|
s.SetTrickle(true);
|
||||||
m := webrtc.MediaEngine{}
|
m := webrtc.MediaEngine{}
|
||||||
m.RegisterCodec(webrtc.NewRTPVP8CodecExt(
|
m.RegisterCodec(webrtc.NewRTPVP8CodecExt(
|
||||||
webrtc.DefaultPayloadTypeVP8, 90000,
|
webrtc.DefaultPayloadTypeVP8, 90000,
|
||||||
|
@ -129,6 +131,7 @@ func addGroup(name string, desc *groupDescription) (*group, error) {
|
||||||
webrtc.DefaultPayloadTypeOpus, 48000,
|
webrtc.DefaultPayloadTypeOpus, 48000,
|
||||||
))
|
))
|
||||||
groups.api = webrtc.NewAPI(
|
groups.api = webrtc.NewAPI(
|
||||||
|
webrtc.WithSettingEngine(s),
|
||||||
webrtc.WithMediaEngine(m),
|
webrtc.WithMediaEngine(m),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue