From 5de171b13a81d823bd67a0af5361bbebc336324f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rton?= Date: Tue, 5 Mar 2024 01:59:54 +0100 Subject: [PATCH] Make HLS support checking more robust (#61) --- 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(); }