Add audio/ogg to the list of recognised audio formats

This commit is contained in:
Xavier Cazin 2014-10-19 22:09:17 +02:00
parent ae7cce3c59
commit 6833bfb220
2 changed files with 2 additions and 0 deletions

View File

@ -1759,6 +1759,7 @@ $tw.boot.startup = function(options) {
$tw.utils.registerFileType("image/svg+xml","utf8",".svg",{flags:["image"]});
$tw.utils.registerFileType("image/x-icon","base64",".ico",{flags:["image"]});
$tw.utils.registerFileType("application/font-woff","base64",".woff");
$tw.utils.registerFileType("audio/ogg","base64",".ogg");
$tw.utils.registerFileType("audio/mp3","base64",".mp3");
$tw.utils.registerFileType("audio/mp4","base64",[".mp4",".m4a"]);
$tw.utils.registerFileType("text/x-markdown","utf8",[".md",".markdown"]);

View File

@ -29,6 +29,7 @@ var AudioParser = function(type,text,options) {
this.tree = [element];
};
exports["audio/ogg"] = AudioParser;
exports["audio/mpeg"] = AudioParser;
exports["audio/mp3"] = AudioParser;
exports["audio/mp4"] = AudioParser;