Proper RTCP report past mute. (#2588)

- When audio is muted, server injects silence frames which moves the
  time stamp forward and adjusts offset. That cannot be used against
  publisher side sender report. Use a pinned version.
- Ignore small changes to propagation delay even while checking for
  sharp increase. That is spamming a lot for small changes, i.e.
  existing delta is 100 micro seconds or so and the new one is 300 micro
  seconds. Also rename to `longTerm` from `smoothed` as it is a slow
  varying long term estimate of propagation delay delta. And slow down
  that adaptation more.
This commit is contained in:
Raja Subramanian
2024-03-19 11:59:24 +05:30
committed by GitHub
parent c30c1be689
commit 03ada9ba76
3 changed files with 44 additions and 37 deletions
+2 -2
View File
@@ -561,10 +561,10 @@ func (f *Forwarder) GetCurrentSpatialAndTSOffset() (int32, uint64) {
defer f.lock.RUnlock()
if f.kind == webrtc.RTPCodecTypeAudio {
return 0, f.rtpMunger.GetTSOffset()
return 0, f.rtpMunger.GetPinnedTSOffset()
}
return f.vls.GetCurrent().Spatial, f.rtpMunger.GetTSOffset()
return f.vls.GetCurrent().Spatial, f.rtpMunger.GetPinnedTSOffset()
}
func (f *Forwarder) isDeficientLocked() bool {