Skip to content

fix(webrtc): Calculate maxBitrates based on HPBs maxstreambits#17670

Open
nickvergessen wants to merge 1 commit intomainfrom
bugfix/16266/optimize-maxbits-to-be-inline-with-hpb
Open

fix(webrtc): Calculate maxBitrates based on HPBs maxstreambits#17670
nickvergessen wants to merge 1 commit intomainfrom
bugfix/16266/optimize-maxbits-to-be-inline-with-hpb

Conversation

@nickvergessen
Copy link
Copy Markdown
Member

☑️ Resolves

Unfortunately despite first successes the more I tested, the less it made a difference. I assume it's due to load on my machine

🏁 Checklist

  • 🌏 Tested with different browsers / clients:
    • Chromium (Chrome / Edge / Opera / Brave)
    • Firefox
    • Safari
    • Talk Desktop
    • Integrations with Files sidebar and other apps
    • Not risky to browser differences / client

Signed-off-by: Joas Schilling <coding@schilljs.com>
Comment thread src/utils/signaling.js
if (data.room?.bandwidth?.maxstreambitrate) {
const totalBps = data.room.bandwidth.maxstreambitrate
if (typeof totalBps === 'number' && totalBps > 0) {
this.maxStreamBits = data.room.bandwidth.maxstreambitrate
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
this.maxStreamBits = data.room.bandwidth.maxstreambitrate
this.maxStreamBits = totalBps

Also you should reset this.maxStreamBits to the default value if no bandwidth limit is returned in the join response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug feature: WebRTC 🚡 WebRTC connection between browsers and/or mobile clients

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants