More time stamp dance. (#1712)

Two things
- Somehow the publisher RTCP sender report time stamp goes back some
  times. Log it differently. Also, use signed type for logging so
  that negative is easy to see.
- On down track, because of silence frame injection on mute, the RTCP
  sender report time stamp might be ahead of timestamp we will use
  on unmute. If so, ensure that next timestamp is also not before
  what was sent in RTCP sender report.
This commit is contained in:
Raja Subramanian
2023-05-16 21:48:10 +05:30
committed by GitHub
parent c79e0ce06f
commit 9395f0b1fb
3 changed files with 39 additions and 25 deletions
+1 -1
View File
@@ -1637,7 +1637,7 @@ func (d *DownTrack) DebugInfo() map[string]interface{} {
}
}
func (d *DownTrack) getExpectedRTPTimestamp(at time.Time) (uint32, error) {
func (d *DownTrack) getExpectedRTPTimestamp(at time.Time) (uint32, uint32, error) {
return d.rtpStats.GetExpectedRTPTimestamp(at)
}