Skip to content

Commit

Permalink
Add support for file type webm & ogg theora (#4404)
Browse files Browse the repository at this point in the history
  • Loading branch information
s-light authored and Jermolene committed Jan 4, 2020
1 parent 75ba862 commit 1ed884c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions boot/boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"]);
Expand Down
3 changes: 2 additions & 1 deletion core/modules/parsers/videoparser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

})();

0 comments on commit 1ed884c

Please sign in to comment.