From 5b01cff9546462c4b940b70edfe81165d868f329 Mon Sep 17 00:00:00 2001 From: Zorglube <630192+zorglube@users.noreply.github.com> Date: Fri, 1 Mar 2024 17:10:03 +0100 Subject: [PATCH] Update video.js Add Conntent Length --- static/js/video.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/js/video.js b/static/js/video.js index fbe0e8b..5e94457 100644 --- a/static/js/video.js +++ b/static/js/video.js @@ -11,7 +11,8 @@ function initPlayer() { let flvPlayer = flvjs.createPlayer({ type: 'flv', url: '/live', - isLive: true + isLive: true, + headers: {{"Content-Length", "0"}} }); flvPlayer.attachMediaElement(videoElement); flvPlayer.load();