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 {