From c62b7a0f32bd13efff781348b1dfc9f30ee1a516 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rton?= Date: Sun, 3 Mar 2024 18:32:02 +0100 Subject: [PATCH] Make HLS support checking more robust --- static/playHLSVideo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/playHLSVideo.js b/static/playHLSVideo.js index d0da7465..4f54e098 100644 --- a/static/playHLSVideo.js +++ b/static/playHLSVideo.js @@ -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(); }