Skip to content

Commit

Permalink
Update video.js
Browse files Browse the repository at this point in the history
Add Conntent Length
  • Loading branch information
zorglube authored Mar 1, 2024
1 parent 068f539 commit 5b01cff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion static/js/video.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 5b01cff

Please sign in to comment.