Forward NACKs to sender in case of double loss.

We already send NACKs when a packet is missing.  Under high packet loss,
however, the recovery packet might get lost two.  Forward receiver NACKs
to the sender, but only after a delay and after checking that the packet
has not arrived in the meantime.
This commit is contained in:
Juliusz Chroboczek
2020-10-12 12:20:55 +02:00
parent 962c675ded
commit 5e130122f5
3 changed files with 97 additions and 8 deletions
+1
View File
@@ -32,6 +32,7 @@ type UpTrack interface {
Codec() *webrtc.RTPCodec
// 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
}
// Type Down represents a connection in the server to client direction.