Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add probing stats, try to fix probing rate #2277

Merged
merged 4 commits into from
Jan 15, 2025
Merged

Conversation

bgrozev
Copy link
Member

@bgrozev bgrozev commented Jan 14, 2025

  • feat: Add stats for bandwidth probing to debug (rtcstats).
  • fix: Use observed bitrate instead of encoder target when calculating probing needed.

@@ -36,18 +40,28 @@ class BandwidthProbing(
/**
* The sequence number to use if probing with the JVB's SSRC.
*/
private var seqNum = Random.nextInt(0xFFFF)
private val seqNum = Random.nextInt(0xFFFF)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this (and ts below) isn't used anywhere other than debug state output, so better to delete it than to make it a val (which doesn't make any sense for a sequence number)

} else {
singleAllocation.targetLayer?.getBitrate(nowMs)
}
val allocationTargetBitrate: Bandwidth? = singleAllocation.targetLayer?.getBitrate(nowMs)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will cause probing to happen, even when we're fully sending ideal, if the VLA bitrate is greater than the measured bitrate, which seems bad.
Conversely if the VLA bitrate is less than the measured bitrate we won't probe up, though I'm confused if that will matter.

@bgrozev bgrozev merged commit dbcceb0 into jitsi:master Jan 15, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants