Skip to content
This repository has been archived by the owner on Jan 12, 2019. It is now read-only.

[ABR] Handle "no playlist enabled" state in simple selector gracefully #1207

Conversation

tchakabam
Copy link
Contributor

@tchakabam tchakabam commented Jul 24, 2017

Description

When we have no playlist enabled, currently this causes undefined behavior and an exception.

When enforcing a single playlist (setting all to disabled and enabling one) currently
we might have a moment where no playlist is enabled.

But also the user may cause this state for various reasons on the API.
We should be able to handle this gracefully (while eventually logging a warning)

Specific Changes proposed

Please list the specific changes involved in this pull request.

Requirements Checklist

  • Feature implemented / Bug fixed
  • If necessary, more likely in a feature request than a bug fix
  • Reviewed by Two Core Contributors

…avior and an exception.

When enforcing a single playlist (setting all to disabled and enabling one) currently
we might have a moment where no playlist is enabled.
But also the user may cause this state for various reasons on the API.
We should be able to handle this gracefully (while eventually logging a warning)
@tchakabam
Copy link
Contributor Author

Note: this is already contained in #1199 but I'll remove it from there, as it will be more consumable to ship things bit by bit per scope :)

@mjneil
Copy link
Contributor

mjneil commented Jul 25, 2017

Thanks for the PR, this is definitely something we should handle gracefully.

Implementation looks solid, would you be able to add a unit test for this behavior?

(I agree, bit by bit is easier to consume 🙂)

@tchakabam
Copy link
Contributor Author

sure, will do 👍

@forbesjo
Copy link
Contributor

We'll update this PR with tests.

@forbesjo
Copy link
Contributor

Thank you for your PR but we will not be accepting new changes for this repo and will be archived very soon. I would advise you to open your PR against the next iteration of this project at https://github.com/videojs/http-streaming.

@forbesjo forbesjo closed this Jan 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants