fixes (maybe) video preview after render on firefox

This commit is contained in:
Sam Lavigne 2023-08-29 12:19:24 -04:00
parent 3e1785f974
commit bfac21c2e4
1 changed files with 5 additions and 0 deletions

View File

@ -54,6 +54,11 @@
const data = await ffmpeg.readFile(outname); const data = await ffmpeg.readFile(outname);
rendering = false; rendering = false;
videoValue = URL.createObjectURL(new Blob([data.buffer], { type: "video/mp4" })); videoValue = URL.createObjectURL(new Blob([data.buffer], { type: "video/mp4" }));
if (outname.endsWith("mp4")) {
setTimeout(() => {
vidPlayerRef.seekToNextFrame();
}, 100);
}
} catch (e) { } catch (e) {
log += e + "\n"; log += e + "\n";
} }