Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Update tauri.ts

Richie McIlroye1a30a7a28dc
diff --git a/apps/desktop/src/utils/tauri.ts b/apps/desktop/src/utils/tauri.ts
index 2bcaab624..2fd1d1327 100644
--- a/apps/desktop/src/utils/tauri.ts
+++ b/apps/desktop/src/utils/tauri.ts
@@ -98,9 +98,15 @@ async beginExportSession() : Promise<void> {
async endExportSession() : Promise<void> {
await TAURI_INVOKE("end_export_session");
},
+async cancelExport(exportId: string) : Promise<boolean> {
+ return await TAURI_INVOKE("cancel_export", { exportId });
+},
async exportVideo(projectPath: string, progress: TAURI_CHANNEL<FramesRendered>, settings: ExportSettings) : Promise<string> {
return await TAURI_INVOKE("export_video", { projectPath, progress, settings });
},
+async exportVideoWithId(projectPath: string, progress: TAURI_CHANNEL<FramesRendered>, settings: ExportSettings, exportId: string) : Promise<string> {
+ return await TAURI_INVOKE("export_video_with_id", { projectPath, progress, settings, exportId });
+},
async exportVideoToFile(projectPath: string, progress: TAURI_CHANNEL<FramesRendered>, settings: ExportSettings, fileName: string, fileType: string) : Promise<string> {
return await TAURI_INVOKE("export_video_to_file", { projectPath, progress, settings, fileName, fileType });
},