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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user