Add support for file type webm & ogg theora (#4404)

single-tiddler-mode
Stefan Krüger 2020-01-04 12:27:13 +01:00 zatwierdzone przez Jeremy Ruston
rodzic 75ba862a7e
commit 1ed884cef4
2 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -2256,6 +2256,8 @@ $tw.boot.startup = function(options) {
$tw.utils.registerFileType("application/font-woff","base64",".woff");
$tw.utils.registerFileType("application/x-font-ttf","base64",".woff");
$tw.utils.registerFileType("audio/ogg","base64",".ogg");
$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"]);

Wyświetl plik

@ -30,8 +30,9 @@ var VideoParser = function(type,text,options) {
this.tree = [element];
};
exports["video/ogg"] = VideoParser;
exports["video/webm"] = VideoParser;
exports["video/mp4"] = VideoParser;
exports["video/quicktime"] = VideoParser;
})();