keep recording audio and video in sync

This commit is contained in:
2026-09-28 20:14:00 +03:00
parent 730b8df0fe
commit 99ff7fc5e2
8 changed files with 713 additions and 590 deletions
+2
View File
@@ -107,6 +107,7 @@ export type RecordedClip = {
export type StartCaptureRequest = {
crop: CaptureRect | null
options?: CaptureConfig
}
export type ExportRequest = {
@@ -194,6 +195,7 @@ export const api = {
resumeCapture: () => invoke<void>("resume_capture"),
restartAudioCapture: () => invoke<void>("restart_audio_capture"),
stopCapture: () => invoke<RecordedClip>("stop_capture"),
discardClip: () => invoke<void>("discard_clip"),
export: (request: ExportRequest) => invoke<ExportResult>("export", { request }),
revealInExplorer: (path: string) => invoke<void>("reveal_in_explorer", { path }),
showOverlay: () => invoke<void>("show_overlay"),