From d41e4025de12561641eaa050b0ffd128882b74b1 Mon Sep 17 00:00:00 2001 From: Alessandro Ros Date: Fri, 3 Nov 2023 09:42:37 +0100 Subject: [PATCH] hls: format code (#2634) --- internal/core/hls_index.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/core/hls_index.html b/internal/core/hls_index.html index d33db6c8..0d12c52b 100644 --- a/internal/core/hls_index.html +++ b/internal/core/hls_index.html @@ -44,9 +44,11 @@ const create = (video) => { hls.on(Hls.Events.MEDIA_ATTACHED, () => { hls.loadSource('index.m3u8' + window.location.search); }); + hls.on(Hls.Events.MANIFEST_PARSED, () => { video.play(); }); + hls.attachMedia(video); } else if (video.canPlayType('application/vnd.apple.mpegurl')) {