Splitting out rtp stats stuff into its own package. (#3060)

* Splitting out rtp stats stuff into its own package.

Going to be making some lighter versions of these.
Will be cleaner to have all of these grouped together.
So, as a first step, just making a package for it.

* tests
This commit is contained in:
Raja Subramanian
2024-10-03 15:51:24 +05:30
committed by GitHub
parent 0b4fd32905
commit 8ac33a868c
15 changed files with 88 additions and 63 deletions
+2 -2
View File
@@ -223,8 +223,8 @@ func TestNewBuffer(t *testing.T) {
buf, _ := p.Marshal()
_, _ = buff.Write(buf)
}
require.Equal(t, uint16(2), buff.rtpStats.sequenceNumber.GetHighest())
require.Equal(t, uint64(65536+2), buff.rtpStats.sequenceNumber.GetExtendedHighest())
require.Equal(t, uint16(2), buff.rtpStats.HighestSequenceNumber())
require.Equal(t, uint64(65536+2), buff.rtpStats.ExtendedHighestSequenceNumber())
})
}
}