mirror of
https://github.com/webadderallorg/Recordly.git
synced 2026-11-09 15:33:31 +00:00
fix(recording): wrap recovery mux in try/catch to prevent video loss on audio failure
This commit is contained in:
1 parent
8069fc7869
commit
b833fc33cb
1 file changed
+5
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user