switch participant callbacks to room to listener interface (#4136)

* switch participant callbacks to room to listener interface

* mage generate

* clean up

* clear listener

* clean up

* use interface in up data track manager

* tweaks

* Paul feedback - should reduce the diff as this keeps the room handlers as is except making methods for a couple of anonymous handlers

* clean up
This commit is contained in:
Raja Subramanian
2025-12-08 15:59:45 +05:30
committed by GitHub
parent c6e6c0215f
commit 64f3d1e972
15 changed files with 1802 additions and 1495 deletions
+2
View File
@@ -385,6 +385,8 @@ func (b *Buffer) createFrameRateCalculator() {
}
// Write adds an RTP Packet, ordering is not guaranteed, newer packets may arrive later
//
//go:noinline
func (b *Buffer) Write(pkt []byte) (n int, err error) {
var rtpPacket rtp.Packet
err = rtpPacket.Unmarshal(pkt)