fixup! wip

This commit is contained in:
lebaudantoine
2026-09-02 22:46:15 +02:00
parent 87931f50cd
commit 2aafd93b46
@@ -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 {