Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

Live edit: Mirror's camera goes off when its face reading can't start

Adarsh0e6f8beef883
diff --git a/src/components/live/live-mirror.tsx b/src/components/live/live-mirror.tsx
index 19de8c32..d7062885 100644
--- a/src/components/live/live-mirror.tsx
+++ b/src/components/live/live-mirror.tsx
@@ -59,6 +59,9 @@ export function LiveMirror({ onPhrase, onStop }: { onPhrase: (phrase: string) =>
await el.play();
reader = await ready;
} catch (e) {
+ // The camera goes off while the panel says how to go on.
+ stream.getTracks().forEach((t) => t.stop());
+ void ready.then((r) => r.close(), () => {});
if (alive) setState({ s: "problem", why: e && typeof e === "object" && "name" in e && (e as { name: string }).name === "NotAllowedError" ? "blocked" : "load" });
return;
}