mirror of
https://github.com/webadderallorg/Recordly.git
synced 2026-09-24 23:05:49 +00:00
fix: clear video src on timeout path in getMediaDurationSec
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user