Skip to content

Commit

Permalink
release: v0.2.1 - fixed recording minimize + add stop recording chime
Browse files Browse the repository at this point in the history
  • Loading branch information
richiemcilroy committed Apr 17, 2024
1 parent f5cb13c commit e71607f
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion apps/desktop/src/components/windows/inner/Recorder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export const Recorder = () => {
tauriWindow.then(({ getAll }) => {
getAll().forEach((window) => {
if (window.label !== "camera") {
window.hide();
window.minimize();
}
});
});
Expand Down Expand Up @@ -235,6 +235,13 @@ export const Recorder = () => {
}
setStoppingRecording(true);

tauriWindow.then(({ WebviewWindow }) => {
const main = WebviewWindow.getByLabel("main");
if (main) {
main.unminimize();
}
});

try {
console.log("Stopping recordings...");

Expand All @@ -253,6 +260,9 @@ export const Recorder = () => {
? `${process.env.NEXT_PUBLIC_URL}/s/${await getLatestVideoId()}`
: `https://cap.link/${await getLatestVideoId()}`;

const audio = new Audio("/recording-end.mp3");
await audio.play();

if (
!process.env.NEXT_PUBLIC_LOCAL_MODE ||
process.env.NEXT_PUBLIC_LOCAL_MODE !== "true"
Expand Down

1 comment on commit e71607f

@vercel
Copy link

@vercel vercel bot commented on e71607f Apr 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.