diff --git a/internal/servers/hls/index.html b/internal/servers/hls/index.html index b54b95b291f..cd14504dadd 100644 --- a/internal/servers/hls/index.html +++ b/internal/servers/hls/index.html @@ -104,6 +104,12 @@ video.play(); }); + // when the video is resumed after a manual or forced pause + // (i.e. when the window is minimized), restore live streaming. + video.onplay = () => { + video.currentTime = hls.liveSyncPosition; + }; + hls.attachMedia(video); } else if (video.canPlayType('application/vnd.apple.mpegurl')) {