Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Send correct none device

Ilya9d52c3aebbbf
diff --git a/apps/desktop/src/components/windows/Camera.tsx b/apps/desktop/src/components/windows/Camera.tsx
index 6610461d2..a32c332c2 100644
--- a/apps/desktop/src/components/windows/Camera.tsx
+++ b/apps/desktop/src/components/windows/Camera.tsx
@@ -41,10 +41,12 @@ export const Camera = () => {
console.error(err);
});
}
+ initializeVideoStream();
const onVisibilityChanged = () => {
- if (document.hidden) stop();
- else initializeVideoStream();
+ if (!document.hidden) initializeVideoStream();
+ // if (!document.hidden) stop();
+ // else initializeVideoStream();
}
const stop = () => {
@@ -113,12 +115,8 @@ export const Camera = () => {
tauriWindowImport.then(async ({ appWindow }) => {
await emit("change-device", {
- type: "video",
- device: {
- label: "None",
- index: -1,
- kind: "video",
- },
+ type: "videoinput",
+ device: null,
});
appWindow.close();
});