Removed REMB references for publisher (#605)

This commit is contained in:
David Zhao
2022-04-07 18:24:11 -07:00
committed by GitHub
parent a55f3a6921
commit 4475a028b6
6 changed files with 6 additions and 19 deletions
+1 -3
View File
@@ -121,7 +121,7 @@ func (b *Buffer) SetLogger(logger logger.Logger) {
}
}
func (b *Buffer) Bind(params webrtc.RTPParameters, codec webrtc.RTPCodecCapability, o Options) {
func (b *Buffer) Bind(params webrtc.RTPParameters, codec webrtc.RTPCodecCapability) {
b.Lock()
defer b.Unlock()
if b.bound {
@@ -190,8 +190,6 @@ func (b *Buffer) Bind(params webrtc.RTPParameters, codec webrtc.RTPCodecCapabili
}
b.pPackets = nil
b.bound = true
b.logger.Debugw("NewBuffer", "MaxBitRate", o.MaxBitRate)
}
// Write adds an RTP Packet, out of order, new packet may be arrived later
+4 -4
View File
@@ -59,7 +59,7 @@ func TestNack(t *testing.T) {
buff.Bind(webrtc.RTPParameters{
HeaderExtensions: nil,
Codecs: []webrtc.RTPCodecParameters{vp8Codec},
}, vp8Codec.RTPCodecCapability, Options{})
}, vp8Codec.RTPCodecCapability)
rtt := uint32(20)
buff.nacker.SetRTT(rtt)
for i := 0; i < 15; i++ {
@@ -118,7 +118,7 @@ func TestNack(t *testing.T) {
buff.Bind(webrtc.RTPParameters{
HeaderExtensions: nil,
Codecs: []webrtc.RTPCodecParameters{vp8Codec},
}, vp8Codec.RTPCodecCapability, Options{})
}, vp8Codec.RTPCodecCapability)
rtt := uint32(30)
buff.nacker.SetRTT(rtt)
for i := 0; i < 15; i++ {
@@ -199,7 +199,7 @@ func TestNewBuffer(t *testing.T) {
buff.Bind(webrtc.RTPParameters{
HeaderExtensions: nil,
Codecs: []webrtc.RTPCodecParameters{vp8Codec},
}, vp8Codec.RTPCodecCapability, Options{})
}, vp8Codec.RTPCodecCapability)
for _, p := range TestPackets {
buf, _ := p.Marshal()
@@ -238,7 +238,7 @@ func TestFractionLostReport(t *testing.T) {
buff.Bind(webrtc.RTPParameters{
HeaderExtensions: nil,
Codecs: []webrtc.RTPCodecParameters{opusCodec},
}, opusCodec.RTPCodecCapability, Options{})
}, opusCodec.RTPCodecCapability)
for i := 0; i < 15; i++ {
pkt := rtp.Packet{
Header: rtp.Header{SequenceNumber: uint16(i), Timestamp: uint32(i)},