updated cli to v3

This commit is contained in:
David Zhao
2020-12-12 22:07:06 -08:00
parent 7d7787590c
commit 4c9623bb49
4 changed files with 54 additions and 60 deletions
+3
View File
@@ -68,6 +68,9 @@ func (r *Receiver) Close() {
// PacketBuffer interface, to provide forwarders packets from the buffer
func (r *Receiver) GetBufferedPackets(mediaSSRC uint32, snOffset uint16, tsOffset uint32, sn []uint16) []rtp.Packet {
if r.bi == nil {
return nil
}
return r.bi.GetBufferedPackets(uint32(r.track.SSRC()), mediaSSRC, snOffset, tsOffset, sn)
}