Commit 015699a9 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Gofmt.

parent 4cebaa6d
...@@ -558,7 +558,7 @@ func updateUpBitrate(g *group, up *upConnection) { ...@@ -558,7 +558,7 @@ func updateUpBitrate(g *group, up *upConnection) {
continue continue
} }
if now - ms > 5000 { if now-ms > 5000 {
continue continue
} }
...@@ -587,7 +587,7 @@ func sendREMB(pc *webrtc.PeerConnection, ssrc uint32, bitrate uint64) error { ...@@ -587,7 +587,7 @@ func sendREMB(pc *webrtc.PeerConnection, ssrc uint32, bitrate uint64) error {
return pc.WriteRTCP([]rtcp.Packet{ return pc.WriteRTCP([]rtcp.Packet{
&rtcp.ReceiverEstimatedMaximumBitrate{ &rtcp.ReceiverEstimatedMaximumBitrate{
Bitrate: bitrate, Bitrate: bitrate,
SSRCs: []uint32{ssrc}, SSRCs: []uint32{ssrc},
}, },
}) })
} }
......
...@@ -117,13 +117,13 @@ func addGroup(name string, desc *groupDescription) (*group, error) { ...@@ -117,13 +117,13 @@ 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 := webrtc.SettingEngine{}
s.SetTrickle(true); s.SetTrickle(true)
m := webrtc.MediaEngine{} m := webrtc.MediaEngine{}
m.RegisterCodec(webrtc.NewRTPVP8CodecExt( m.RegisterCodec(webrtc.NewRTPVP8CodecExt(
webrtc.DefaultPayloadTypeVP8, 90000, webrtc.DefaultPayloadTypeVP8, 90000,
[]webrtc.RTCPFeedback{ []webrtc.RTCPFeedback{
webrtc.RTCPFeedback{"goog-remb", ""}, {"goog-remb", ""},
webrtc.RTCPFeedback{"nack", "pli"}, {"nack", "pli"},
}, },
"", "",
)) ))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment