Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
make format selection backwards compatible
Brendan Allan0d96ad7091cf
diff --git a/Cargo.lock b/Cargo.lockindex 142e12895..8e1973249 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -952,7 +952,7 @@ dependencies = [[[package]]name = "cap-desktop"-version = "0.3.53"+version = "0.3.54"dependencies = ["anyhow","axum",diff --git a/apps/desktop/src-tauri/Cargo.toml b/apps/desktop/src-tauri/Cargo.tomlindex 924cc08d6..b6fba8fa6 100644--- a/apps/desktop/src-tauri/Cargo.toml+++ b/apps/desktop/src-tauri/Cargo.toml@@ -1,6 +1,6 @@[package]name = "cap-desktop"-version = "0.3.53"+version = "0.3.54"description = "Beautiful screen recordings, owned by you."authors = ["you"]edition = "2021"diff --git a/apps/desktop/src/routes/editor/ExportDialog.tsx b/apps/desktop/src/routes/editor/ExportDialog.tsxindex b096ca686..65db26fed 100644--- a/apps/desktop/src/routes/editor/ExportDialog.tsx+++ b/apps/desktop/src/routes/editor/ExportDialog.tsx@@ -96,6 +96,13 @@ export const FORMAT_OPTIONS = [type ExportToOption = (typeof EXPORT_TO_OPTIONS)[number]["value"];+interface Settings {+ format: ExportFormat;+ fps: number;+ exportTo: ExportToOption;+ resolution: { label: string; value: string; width: number; height: number };+ compression: ExportCompression;+}export function ExportDialog() {const {dialog,@@ -108,16 +115,20 @@ export function ExportDialog() {} = useEditorContext();const [settings, setSettings] = makePersisted(- createStore({- format: "MP4" as ExportFormat,+ createStore<Settings>({+ format: "Mp4",fps: 30,- exportTo: "file" as ExportToOption,+ exportTo: "file",resolution: { label: "720p", value: "720p", width: 1280, height: 720 },- compression: "Minimal" as ExportCompression,+ compression: "Minimal",}),{ name: "export_settings" });+ if ((settings.format as string) === "MP4") {+ setSettings("format", "Mp4");+ }+const exportWithSettings = (onProgress: (progress: FramesRendered) => void) =>exportVideo(projectPath,