mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 10:07:19 +00:00
Add support for file type webm & ogg theora (#4404)
This commit is contained in:
parent
75ba862a7e
commit
1ed884cef4
@ -2256,6 +2256,8 @@ $tw.boot.startup = function(options) {
|
|||||||
$tw.utils.registerFileType("application/font-woff","base64",".woff");
|
$tw.utils.registerFileType("application/font-woff","base64",".woff");
|
||||||
$tw.utils.registerFileType("application/x-font-ttf","base64",".woff");
|
$tw.utils.registerFileType("application/x-font-ttf","base64",".woff");
|
||||||
$tw.utils.registerFileType("audio/ogg","base64",".ogg");
|
$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("video/mp4","base64",".mp4");
|
||||||
$tw.utils.registerFileType("audio/mp3","base64",".mp3");
|
$tw.utils.registerFileType("audio/mp3","base64",".mp3");
|
||||||
$tw.utils.registerFileType("audio/mp4","base64",[".mp4",".m4a"]);
|
$tw.utils.registerFileType("audio/mp4","base64",[".mp4",".m4a"]);
|
||||||
|
@ -30,8 +30,9 @@ var VideoParser = function(type,text,options) {
|
|||||||
this.tree = [element];
|
this.tree = [element];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
exports["video/ogg"] = VideoParser;
|
||||||
|
exports["video/webm"] = VideoParser;
|
||||||
exports["video/mp4"] = VideoParser;
|
exports["video/mp4"] = VideoParser;
|
||||||
exports["video/quicktime"] = VideoParser;
|
exports["video/quicktime"] = VideoParser;
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user