Skip to content

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
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