Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
feat(desktop): heal stretched camera recordings on editor open
Richie McIlroyf3d244398a84
diff --git a/apps/desktop/src-tauri/src/lib.rs b/apps/desktop/src-tauri/src/lib.rsindex 7cf9f0161..09cf7002d 100644--- a/apps/desktop/src-tauri/src/lib.rs+++ b/apps/desktop/src-tauri/src/lib.rs@@ -6492,6 +6492,23 @@ pub(crate) async fn wait_for_recording_ready(app: &AppHandle, path: &Path) -> Reinfo!("Crash recovery remux completed");}+ if meta.studio_meta().is_some() {+ // Repair camera tracks that were stamped at the wrong rate by older+ // recorders (2x-length slow-motion camera). Non-fatal: the editor+ // still opens with the unhealed file if this fails.+ let path = path.to_path_buf();+ match tokio::task::spawn_blocking(move || {+ cap_recording::camera_heal::heal_stretched_camera(&path)+ })+ .await+ {+ Ok(Ok(true)) => info!("Healed stretched camera track(s)"),+ Ok(Ok(false)) => {}+ Ok(Err(e)) => warn!("Camera heal check failed: {e:#}"),+ Err(e) => warn!("Camera heal task panicked: {e}"),+ }+ }+Ok(())}