Base initial bandwidth estimate on first level bitrate #5649
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR will...
Set the default bandwidth estimate based on first variant in multivariant playlist
hls.bandwidthEstimate
which resets the bandwidth estimator using the input value as the new default estimate.config.abrEwmaDefaultEstimateMax
option which limits how high default value can be adjusted to.Separate peak and average bitrates of Level objects
Level.bitrate
returns peak bitrate value (BANDWIDTH attribute) by defaultaverageBitrate
getter toLevel
Why is this Pull Request needed?
This is the first of several changes that will allow selection and playback of preferred codecs on start.
Are there any points in the code the reviewer needs to double check?
This change does not change default initial quality selection. It should however provide a faster BWE ramp up, and more stable start.
Resolves issues:
Resolves #2754
Checklist