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

Set starting send bitrate to 1000kbps to reduce time of low resolution at start of connection #2987

Merged
merged 2 commits into from
Nov 6, 2024

Conversation

hensmi-amazon
Copy link
Contributor

Issue #: aws/amazon-chime-sdk-component-library-react#968

Description of changes: The original behavior isn't necessarily a bad thing, however I think the benefit of starting your video close to the intended quality on a clear network outweighs the risk aversion of a lower start bitrate. On a low-medium RTT connection I did not see any different in loss when enabling video before/after the change with my network constrained.

Testing:

Can these tested using a demo application? Please provide reproducible step-by-step instructions.

  1. Enable video
  2. Should immediate be expected resolution

Checklist:

  1. Have you successfully run npm run build:release locally?
    y

  2. Do you add, modify, or delete public API definitions? If yes, has that been reviewed and approved?
    n

  3. Do you change the wire protocol, e.g. the request method? If yes, has that been reviewed and approved?
    n

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@hensmi-amazon hensmi-amazon requested a review from a team as a code owner November 5, 2024 01:39
@@ -927,8 +927,9 @@ export default class SDP {
// `x-google-start-bitrate` is an unofficial flag that has existed in libwebrtc since its release and is unlikely
// to be removed without notification.
//
// libwebrtc reference: https://webrtc.googlesource.com/src/+/b6ef1a736ee94d97cc28f3bd59b826c716a3278f/media/base/media_constants.cc#97
const newLine = line + `;x-google-start-bitrate=${bitrateKbps * 1000}`;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

oopsie daisy

Copy link
Contributor

Choose a reason for hiding this comment

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

Wow, wonder how this would have worked so far with * 1000 already added.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It just uses the max bitrate configured, so nothing terrible.

shi-su
shi-su previously approved these changes Nov 5, 2024
@hensmi-amazon hensmi-amazon merged commit f3d175b into main Nov 6, 2024
10 checks passed
@hensmi-amazon hensmi-amazon deleted the start-br branch November 6, 2024 01:28
@@ -5,32 +5,22 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [3.26.0] - 2024-10-07
Copy link
Contributor

Choose a reason for hiding this comment

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

Should still be Unreleased?

@hensmi-amazon hensmi-amazon mentioned this pull request Nov 6, 2024
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.

4 participants