Merge pull request #998 from xcazin/ogg

Add audio/ogg  to the list of recognised formats
print-window-tiddler
Jeremy Ruston 2014-10-20 12:30:00 +01:00
commit f25053490e
3 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -1748,6 +1748,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"]);

Wyświetl plik

@ -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;

Wyświetl plik

@ -1,5 +1,5 @@
created: 20141018131647392
modified: 20141018132325901
modified: 20141019200654436
tags: [[Working with TiddlyWiki]]
title: Audio
type: text/vnd.tiddlywiki
@ -18,7 +18,7 @@ You can also transclude audio files. For example:
! External Audio
External audio tiddlers use the ''_canonical_uri'' field to point to an external audio file, and have a block ''text'' field. This reduces their size considerably, and still allows for playback.
External audio tiddlers use the ''_canonical_uri'' field to point to an external audio file/stream, and have a block ''text'' field. This reduces their size considerably, and still allows for playback.
For example, the tiddler [[Caruso - Ave Maria]] points to an online audio recording hosted on http://archive.org: