diff options
| author | jade (winter) | 2026-07-20 13:35:01 +0100 |
|---|---|---|
| committer | jade (winter) | 2026-07-20 13:35:01 +0100 |
| commit | d5ea0f332bf8e5f0745e2c0e592ee895423a70ad (patch) | |
| tree | 1649ba6a70b64623b5b1692359b4a70cb89970f1 /static | |
| parent | 5f301e85b24f3a219c3020a8e24113c31a2a1058 (diff) | |
add live playback support
Diffstat (limited to 'static')
| -rw-r--r-- | static/hls-player.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/static/hls-player.js b/static/hls-player.js index 6be5a91..24fa04a 100644 --- a/static/hls-player.js +++ b/static/hls-player.js @@ -1,6 +1,10 @@ if (Hls.isSupported()) { const player = document.getElementById('hls-player'); - const hls = new Hls(); + const hls = new Hls({ + liveDurationInfinity: true, + liveSyncDurationCount: 3, + liveMaxLatencyDurationCount: 5, + }); hls.loadSource(player.dataset.hls); hls.attachMedia(player); hls.on(Hls.Events.MANIFEST_PARSED, (e, d) => { |
