Move sequence number adjustment to when out-of-order is detected (#3387)
initially. Out-of-order reception is detected and dropped before this change. By moving the adjustment to that point, potentially more reports can be processed.
This commit is contained in:
@@ -682,7 +682,7 @@ func (d *DownTrack) Codec() webrtc.RTPCodecCapability {
|
||||
func (d *DownTrack) StreamID() string { return d.params.StreamID }
|
||||
|
||||
func (d *DownTrack) SubscriberID() livekit.ParticipantID {
|
||||
// add `createdAt` to ensure repeated subscriptions from same subscrober to same publisher does not collide
|
||||
// add `createdAt` to ensure repeated subscriptions from same subscriber to same publisher does not collide
|
||||
return livekit.ParticipantID(fmt.Sprintf("%s:%d", d.params.SubID, d.createdAt))
|
||||
}
|
||||
|
||||
@@ -1305,6 +1305,8 @@ func (d *DownTrack) SeedState(state DownTrackState) {
|
||||
if state.RTPStatsRTX != nil {
|
||||
d.rtpStatsRTX.Seed(state.RTPStatsRTX)
|
||||
d.deltaStatsRTXSenderSnapshotId = state.DeltaStatsRTXSenderSnapshotId
|
||||
|
||||
d.rtxSequenceNumber.Store(d.rtpStatsRTX.ExtHighestSequenceNumber())
|
||||
}
|
||||
d.forwarder.SeedState(state.ForwarderState)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user