mirror of
https://github.com/jech/galene.git
synced 2024-11-22 16:45:58 +01:00
Request RTCP feedback explicitly.
Chrome sends us feedback anyway, but it cannot harm, can it?
This commit is contained in:
parent
d33b52179e
commit
b0e12b0737
1 changed files with 10 additions and 3 deletions
13
group.go
13
group.go
|
@ -97,10 +97,17 @@ 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)
|
||||||
m := webrtc.MediaEngine{}
|
m := webrtc.MediaEngine{}
|
||||||
m.RegisterCodec(webrtc.NewRTPVP8Codec(
|
m.RegisterCodec(webrtc.NewRTPVP8CodecExt(
|
||||||
webrtc.DefaultPayloadTypeVP8, 90000))
|
webrtc.DefaultPayloadTypeVP8, 90000,
|
||||||
|
[]webrtc.RTCPFeedback{
|
||||||
|
webrtc.RTCPFeedback{"goog-remb", ""},
|
||||||
|
webrtc.RTCPFeedback{"nack", "pli"},
|
||||||
|
},
|
||||||
|
"",
|
||||||
|
))
|
||||||
m.RegisterCodec(webrtc.NewRTPOpusCodec(
|
m.RegisterCodec(webrtc.NewRTPOpusCodec(
|
||||||
webrtc.DefaultPayloadTypeOpus, 48000))
|
webrtc.DefaultPayloadTypeOpus, 48000,
|
||||||
|
))
|
||||||
groups.api = webrtc.NewAPI(
|
groups.api = webrtc.NewAPI(
|
||||||
webrtc.WithMediaEngine(m),
|
webrtc.WithMediaEngine(m),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue