Skip to content

Commit

Permalink
Make HLS support checking more robust (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
wimex authored Mar 5, 2024
1 parent 2291095 commit 5de171b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/playHLSVideo.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
var autoplay = oldVideo.classList.contains("hls_autoplay");

// If HLS is supported natively then don't use hls.js
if (oldVideo.canPlayType(source.type)) {
if (oldVideo.canPlayType(source.type) === "probably") {
if (autoplay) {
oldVideo.play();
}
Expand Down

0 comments on commit 5de171b

Please sign in to comment.