(ssrc uint32, maxVideoPkts, maxAudioPkts int)
| 75 | } |
| 76 | |
| 77 | func NewBuffer(ssrc uint32, maxVideoPkts, maxAudioPkts int) *Buffer { |
| 78 | b := &Buffer{} |
| 79 | b.BufferBase = NewBufferBase(BufferBaseParams{ |
| 80 | SSRC: ssrc, |
| 81 | MaxVideoPkts: maxVideoPkts, |
| 82 | MaxAudioPkts: maxAudioPkts, |
| 83 | LoggerComponents: []string{sutils.ComponentPub, sutils.ComponentSFU}, |
| 84 | SendPLI: b.sendPLI, |
| 85 | IsReportingEnabled: true, |
| 86 | }) |
| 87 | return b |
| 88 | } |
| 89 | |
| 90 | func (b *Buffer) SetTWCCAndExtID(twcc *twcc.Responder, extID uint8) { |
| 91 | b.Lock() |