keep recording audio and video in sync
This commit is contained in:
+3
-1
@@ -373,7 +373,9 @@
|
||||
showDiscardConfirm = false
|
||||
}
|
||||
|
||||
function doDiscard() {
|
||||
async function doDiscard() {
|
||||
try { await api.discardClip() }
|
||||
catch (error) { errMsg = String(error); return }
|
||||
showDiscardConfirm = false
|
||||
startOver()
|
||||
}
|
||||
|
||||
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user