Make HLS support checking more robust (#61)

This commit is contained in:
Márton 2024-03-05 01:59:54 +01:00 committed by GitHub
parent 22910956db
commit 5de171b13a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();
}