From 2aafd93b4614c05586aa17e1a123883df0b638b1 Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Wed, 2 Sep 2026 22:46:15 +0200 Subject: [PATCH] fixup! wip --- .../livekit/components/blur/BackgroundCustomProcessor.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/frontend/src/features/rooms/livekit/components/blur/BackgroundCustomProcessor.ts b/src/frontend/src/features/rooms/livekit/components/blur/BackgroundCustomProcessor.ts index ee21c9d8..5361af27 100644 --- a/src/frontend/src/features/rooms/livekit/components/blur/BackgroundCustomProcessor.ts +++ b/src/frontend/src/features/rooms/livekit/components/blur/BackgroundCustomProcessor.ts @@ -210,10 +210,7 @@ export class BackgroundCustomProcessor implements BackgroundProcessorInterface { this._syncOutputCanvasSize() this._scheduleNextFrame() } - - // When re-initializing with an element that already has data (e.g. after - // hiding then showing the camera), 'loadeddata' will not fire again, so - // rely on readyState instead of a stale boolean flag. + if (this.videoElement!.readyState >= HTMLMediaElement.HAVE_CURRENT_DATA) { startLoop() } else {