From 91954efa16fe415988031391f5849e2cb513475c Mon Sep 17 00:00:00 2001 From: Rishi Balakrishnan Date: Fri, 25 Sep 2026 15:48:20 -0400 Subject: [PATCH] fix(live): treat web playback as live and drop played video from memory liveDurationInfinity removes the finite duration the native controls showed, and a 10s back buffer stops unbounded memory growth and limits seeking to the live window. --- src/features/streamplace/LivePlayer.web.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/features/streamplace/LivePlayer.web.tsx b/src/features/streamplace/LivePlayer.web.tsx index 4d4d26834..80e4a8f75 100644 --- a/src/features/streamplace/LivePlayer.web.tsx +++ b/src/features/streamplace/LivePlayer.web.tsx @@ -42,7 +42,10 @@ export function LivePlayer({actor}: {actor: string}) { void import('hls.js').then(({default: Hls}) => { if (disposed) return if (Hls.isSupported()) { - const instance = new Hls() + const instance = new Hls({ + liveDurationInfinity: true, + backBufferLength: 10, + }) instance.on(Hls.Events.ERROR, (_e, data) => { if (!data.fatal) return if (data.type === Hls.ErrorTypes.MEDIA_ERROR) { -- knotmirror 0.0.1