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

Support startLevel above max level index #6190

Merged
merged 1 commit into from
Feb 7, 2024

Conversation

robwalch
Copy link
Collaborator

@robwalch robwalch commented Feb 6, 2024

This PR will...

Fix regression that removed (unofficial) support for startLevel above max level index. Update docs to note that startLevel should be set to a valid level index.

Why is this Pull Request needed?

Setting startLevel to Infinity is used to start on max level index even though the player emits a non-fatal error. Since the error is non-fatal playback and streaming should not fail.

Are there any points in the code the reviewer needs to double check?

Changing stream-controller startLoad logic can have side-effects. This change is an improvement that will keep the stream-controller's level index aligned with the level controllers load level index.

Resolves issues:

Fixes #6172

Checklist

  • changes have been done against master branch, and PR does not conflict
  • new unit / functional tests have been added (whenever applicable)
  • API or design changes are documented in API.md

@robwalch robwalch added this to the 1.5.4 milestone Feb 6, 2024
@robwalch robwalch merged commit 88d54a9 into patch/v1.5.x Feb 7, 2024
12 of 13 checks passed
@robwalch robwalch deleted the bugfix/support-start-level-value-above-max branch February 7, 2024 00:09
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.

None yet

1 participant