summaryrefslogtreecommitdiff
path: root/static/hls-player.js
diff options
context:
space:
mode:
authorjade (winter)2026-07-20 13:35:01 +0100
committerjade (winter)2026-07-20 13:35:01 +0100
commitd5ea0f332bf8e5f0745e2c0e592ee895423a70ad (patch)
tree1649ba6a70b64623b5b1692359b4a70cb89970f1 /static/hls-player.js
parent5f301e85b24f3a219c3020a8e24113c31a2a1058 (diff)
add live playback support
Diffstat (limited to 'static/hls-player.js')
-rw-r--r--static/hls-player.js6
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) => {