fix(recording): wrap recovery mux in try/catch to prevent video loss on audio failure

This commit is contained in:
webadderall committed 2026-03-30 22:55:53 +11:00
1 parent 8069fc7869
commit b833fc33cb
1 file changed
+5 -1
+5 -1
View File
@@ -2666,7 +2666,11 @@ async function recoverNativeMacCaptureOutput() {
try {
if (systemAudioPath || microphonePath) {
await muxNativeMacRecordingWithAudio(candidatePath, systemAudioPath, microphonePath)
try {
await muxNativeMacRecordingWithAudio(candidatePath, systemAudioPath, microphonePath)
} catch (muxError) {
console.warn('Failed to mux audio during recovery:', muxError)
}
}
return await finalizeStoredVideo(candidatePath)