From 30833f62a1e1d4299c49fc0485991933e6a5bdac Mon Sep 17 00:00:00 2001 From: Lars Date: Mon, 16 Nov 2026 10:05:36 +0100 Subject: [PATCH] Spiele HLS mit hls.js, wenn der Browser es nur behauptet Co-authored-by: Cursor --- resources/js/app.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/resources/js/app.js b/resources/js/app.js index 6de2d8b..109389a 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -7,16 +7,16 @@ document.querySelectorAll('video[data-hls]').forEach((video) => { return; } - if (video.canPlayType('application/vnd.apple.mpegurl')) { - video.src = source; - - return; - } - if (Hls.isSupported()) { const playback = new Hls(); playback.loadSource(source); playback.attachMedia(video); + + return; + } + + if (video.canPlayType('application/vnd.apple.mpegurl')) { + video.src = source; } });