From 344110e2890caf711ab8f3c4f4deaa7d86771231 Mon Sep 17 00:00:00 2001 From: "jeremy@jermolene.com" Date: Wed, 9 Nov 2022 13:56:28 +0000 Subject: [PATCH] Rearrange ordering of MP4 extension so that it defaults to video not audio Previously using the --load command to import an MP4 file would cause it to be recognised as autio/mp4 instead of video/mp4 --- boot/boot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot/boot.js b/boot/boot.js index 6bfa6495a..c64b881f4 100644 --- a/boot/boot.js +++ b/boot/boot.js @@ -2403,11 +2403,11 @@ $tw.boot.initStartup = function(options) { $tw.utils.registerFileType("application/x-font-ttf","base64",".woff"); $tw.utils.registerFileType("application/font-woff2","base64",".woff2"); $tw.utils.registerFileType("audio/ogg","base64",".ogg"); + $tw.utils.registerFileType("audio/mp4","base64",[".mp4",".m4a"]); $tw.utils.registerFileType("video/ogg","base64",[".ogm",".ogv",".ogg"]); $tw.utils.registerFileType("video/webm","base64",".webm"); $tw.utils.registerFileType("video/mp4","base64",".mp4"); $tw.utils.registerFileType("audio/mp3","base64",".mp3"); - $tw.utils.registerFileType("audio/mp4","base64",[".mp4",".m4a"]); $tw.utils.registerFileType("text/markdown","utf8",[".md",".markdown"],{deserializerType:"text/x-markdown"}); $tw.utils.registerFileType("text/x-markdown","utf8",[".md",".markdown"]); $tw.utils.registerFileType("application/enex+xml","utf8",".enex");