From fdaba8344dfeb76853c0aad38da55c20e10f5e49 Mon Sep 17 00:00:00 2001 From: ayaka Date: Sat, 31 Aug 2024 10:18:05 +1200 Subject: [PATCH] set video download MIME fixes #11 --- static/videoUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/videoUtils.js b/static/videoUtils.js index d697e4a..6f3cd17 100644 --- a/static/videoUtils.js +++ b/static/videoUtils.js @@ -115,7 +115,7 @@ let ffmpeg = null; var filename = toSlug(videoElement.parentNode.parentNode.id || document.title) const data = await ffmpeg.readFile('output.mp4'); - saveAs(new Blob([data.buffer]),filename); + saveAs(new Blob([data.buffer]),filename, {type: 'video/mp4'}); return } function saveAs(blob, filename) { // Yeah ok...