From 0727b61de73dd83dffc5c2576c0af016afd6376d Mon Sep 17 00:00:00 2001 From: Prayas Lashkari Date: Sun, 15 Mar 2026 02:07:39 -0400 Subject: [PATCH 1/4] feat: add restart recording functionality in LaunchWindow and useScreenRecorder --- src/components/launch/LaunchWindow.tsx | 24 +++++++++++++++++++++++- src/hooks/useScreenRecorder.ts | 15 +++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) diff --git a/src/components/launch/LaunchWindow.tsx b/src/components/launch/LaunchWindow.tsx index b456dd6..ef3c3b3 100644 --- a/src/components/launch/LaunchWindow.tsx +++ b/src/components/launch/LaunchWindow.tsx @@ -4,7 +4,15 @@ import { BsRecordCircle } from "react-icons/bs"; import { FaRegStopCircle } from "react-icons/fa"; import { FaFolderOpen } from "react-icons/fa6"; import { FiMinus, FiX } from "react-icons/fi"; -import { MdMic, MdMicOff, MdMonitor, MdVideoFile, MdVolumeOff, MdVolumeUp } from "react-icons/md"; +import { + MdMic, + MdMicOff, + MdMonitor, + MdRestartAlt, + MdVideoFile, + MdVolumeOff, + MdVolumeUp, +} from "react-icons/md"; import { RxDragHandleDots2 } from "react-icons/rx"; import { useAudioLevelMeter } from "../../hooks/useAudioLevelMeter"; import { useMicrophoneDevices } from "../../hooks/useMicrophoneDevices"; @@ -24,6 +32,7 @@ const ICON_CONFIG = { micOn: { icon: MdMic, size: ICON_SIZE }, micOff: { icon: MdMicOff, size: ICON_SIZE }, stop: { icon: FaRegStopCircle, size: ICON_SIZE }, + restart: { icon: MdRestartAlt, size: ICON_SIZE }, record: { icon: BsRecordCircle, size: ICON_SIZE }, videoFile: { icon: MdVideoFile, size: ICON_SIZE }, folder: { icon: FaFolderOpen, size: ICON_SIZE }, @@ -51,6 +60,7 @@ export function LaunchWindow() { const { recording, toggleRecording, + restartRecording, microphoneEnabled, setMicrophoneEnabled, microphoneDeviceId, @@ -256,6 +266,18 @@ export function LaunchWindow() { )} + {/* Restart recording */} + {recording && ( + + + + )} + {/* Open video file */}