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

feat(ABR): Additional request information for ABR Managers #6313

Merged

Conversation

dave-nicholas
Copy link
Contributor

This PR makes the following request information available for ABR consideration. Allowing the ABR manager to know about the request latency from the time to first byte and knowing the order order of a packet, as well as the contentType of the request.

@shaka-bot
Copy link
Collaborator

Incremental code coverage: 100.00%

lib/net/networking_engine.js Outdated Show resolved Hide resolved
lib/net/networking_engine.js Outdated Show resolved Hide resolved
* @exportDoc
*/
segmentDownloaded(deltaTimeMs, numBytes, allowSwitch) {}
segmentDownloaded(deltaTimeMs, numBytes, allowSwitch, request) {}
Copy link
Member

Choose a reason for hiding this comment

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

I don't see this new parameter added to our default AbrManager or any test fakes.

Copy link
Contributor Author

@dave-nicholas dave-nicholas Mar 1, 2024

Choose a reason for hiding this comment

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

We are using a custom ABR manager and are experimenting with different algorithms and I didn't want to complicate or change the behaviour of the simple ABR manager.

Copy link
Member

Choose a reason for hiding this comment

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

Can you explain the algorithm? Maybe can be interesting in Shaka…

Copy link
Contributor Author

@dave-nicholas dave-nicholas Mar 1, 2024

Choose a reason for hiding this comment

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

Its basically to mitigate the reasons outlined in this comment

* Minimum number of bytes, under which samples are discarded. Our models

The concept of min bytes is a problem when you get down to really low bandwidths.

Copy link
Member

@joeyparrish joeyparrish Mar 4, 2024

Choose a reason for hiding this comment

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

I don't see this new parameter added to our default AbrManager or any test fakes.

I didn't want to complicate or change the behaviour of the simple ABR manager.

You don't need to implement the behavior. Please just add the argument, so that the method signature of our builtins always agree with the external definition.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

@joeyparrish joeyparrish merged commit 6c4333c into shaka-project:main Mar 6, 2024
15 checks passed
@shaka-bot shaka-bot added the status: archived Archived and locked; will not be updated label May 5, 2024
@shaka-project shaka-project locked as resolved and limited conversation to collaborators May 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: archived Archived and locked; will not be updated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants