Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
fix(workflows): tolerate missing mux state for desktop MP4
Richie McIlroyce34f9c7f2c8
diff --git a/apps/web/workflows/finalize-desktop-recording.ts b/apps/web/workflows/finalize-desktop-recording.tsindex 0dd658f3e..41f71052b 100644--- a/apps/web/workflows/finalize-desktop-recording.ts+++ b/apps/web/workflows/finalize-desktop-recording.ts@@ -598,6 +598,15 @@ async function waitForDesktopSegmentsMuxCompletion(}if (!upload) {+ const [currentVideo] = await db()+ .select({ source: videos.source })+ .from(videos)+ .where(eq(videos.id, Video.VideoId.make(videoId)));++ if (currentVideo?.source?.type === "desktopMP4") {+ return;+ }+throw new Error("Segment muxing state disappeared before completion");}