fix: clear video src on timeout path in getMediaDurationSec

This commit is contained in:
webadderall
2026-04-18 22:04:40 +10:00
parent a0668696bc
commit 681bc70c13
+2
View File
@@ -1153,6 +1153,8 @@ export class AudioProcessor {
return await new Promise<number>((resolve, reject) => {
const timeout = setTimeout(() => {
cleanup();
media.src = "";
media.load();
reject(new Error("Timed out getting media duration (30s)"));
}, 30_000);