Maintain a reference to the connection associated to each track.

This avoids carrying an extra parameter in many places.
This commit is contained in:
Juliusz Chroboczek
2021-07-14 14:05:23 +02:00
parent bcd62f190b
commit 36d31f0db8
6 changed files with 30 additions and 32 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ type UpTrack interface {
Codec() webrtc.RTPCodecCapability
// get a recent packet. Returns 0 if the packet is not in cache.
GetRTP(seqno uint16, result []byte) uint16
Nack(conn Up, seqnos []uint16) error
Nack(seqnos []uint16) error
RequestKeyframe() error
}