mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-24 00:50:28 +00:00
Merge pull request #998 from xcazin/ogg
Add audio/ogg to the list of recognised formats
This commit is contained in:
commit
f25053490e
@ -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"]);
|
||||
|
@ -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;
|
||||
|
@ -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:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user