remove warning log of unexpected rtcp fb (#2546)

* remove warning log of unexpected rtcp fb

* Add log for high playout delay

* don't create delay controller for audio
This commit is contained in:
cnderrauber
2024-03-05 10:35:28 +08:00
committed by GitHub
parent 108594a0b9
commit 95001dfe54
2 changed files with 12 additions and 14 deletions
+5
View File
@@ -33,6 +33,8 @@ const (
jitterLowMultiToDelay = 10
jitterHighMultiToDelay = 15
jitterHighThreshold = 15
targetDelayLogThreshold = 500
)
func (s PlayoutDelayState) String() string {
@@ -110,6 +112,9 @@ func (c *PlayoutDelayController) SetJitter(jitter uint32) {
c.lock.Unlock()
return
}
if targetDelay > targetDelayLogThreshold {
c.logger.Debugw("high playout delay", "target", targetDelay, "jitter", jitter, "nackPercent", nackPercent, "current", c.currentDelay)
}
c.currentDelay = targetDelay
c.lock.Unlock()
c.createExtData()