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

Make HLS support checking more robust #61

Merged
merged 1 commit into from
Mar 5, 2024
Merged

Make HLS support checking more robust #61

merged 1 commit into from
Mar 5, 2024

Conversation

wimex
Copy link
Contributor

@wimex wimex commented Mar 3, 2024

Video playback is broken for me on Android Firefox/123.0.

Based on the documentation here: https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/canPlayType

According to the page above, the canPlayType call has 3 possible return values: "", maybe, probably. Maybe means "There is not enough information to determine whether the media can play" so simply checking if the string has a value seems to be incorrect in this case. This change updates the check to test if the browser returns at least "probably".

@sigaloid sigaloid merged commit 5de171b into redlib-org:main Mar 5, 2024
3 checks passed
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.

2 participants