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

Add isRepresentationPlayable util #1539

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open

Conversation

peaBerberian
Copy link
Collaborator

While working on #1533, I noticed that there is a high number of places in the code where we want to know if a given Representation can probably be playable or not (is not known to be undecipherable and in an unsupported codec).

I added an isRepresentationPlayable util to make those places more clear about the intent than checking a couple properties.

I made it return undefined for the special case where the codec support is still undefined as what we would want to do in this case depends.

@peaBerberian peaBerberian added the proposal This Pull Request or Issue is only a proposal for a change with the expectation of a debate on it label Sep 9, 2024
@peaBerberian peaBerberian added code Relative to the RxPlayer's code. Might not change any RxPlayer behavior Priority: 3 (Low) This issue or PR has a low priority. labels Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code Relative to the RxPlayer's code. Might not change any RxPlayer behavior Priority: 3 (Low) This issue or PR has a low priority. proposal This Pull Request or Issue is only a proposal for a change with the expectation of a debate on it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant