5.1.18 serving audio files

75 views
Skip to first unread message

vpl

unread,
Nov 26, 2018, 9:58:56 AM11/26/18
to TiddlyWiki
Hi,

I have a Tiddlywiki file that I use for serving local audio files ( I use TiddlyDesktop. No Nodejs server).

In my tiddler I use the following code to display the HTML-5 audio element
     <audio src="audio/cours/chorus-travail-debit.mp3" preload="auto" controls></audio>
The audio directory is located at the same level as my tiddlywiki.html file.
This works properly

I'm currently trying to test the same functionality on 5.1.18 but with the nodejs server option.
  • So I've copy the audio directory in the same directory as the one containing tiddlywiki.info file
  • I've created a tiddler with the same code
            <audio src="audio/cours/chorus-travail-debit.mp3" preload="auto" controls></audio>

That does not works. I click on the play button but Tiddlywiki does not find the audio file to serve.

Any idea ? 
Is it even possible ?

With regards

Vpl

Mark S.

unread,
Nov 26, 2018, 10:23:36 AM11/26/18
to TiddlyWiki

Unless things have changed, TW on node.js doesn't serve anything except TW data structures.

Bob and TiddlyServer can serve up images, pdfs ... don't know if they do audio.

Good luck
-- Mark

Jeremy Ruston

unread,
Nov 26, 2018, 10:42:07 AM11/26/18
to tiddl...@googlegroups.com
I'm currently trying to test the same functionality on 5.1.18 but with the nodejs server option.
  • So I've copy the audio directory in the same directory as the one containing tiddlywiki.info file
  • I've created a tiddler with the same code
            <audio src="audio/cours/chorus-travail-debit.mp3" preload="auto" controls></audio>

Note that the files need to go into a folder called “files” in the wiki folder (ie a sibling to the “tiddlers” folder”). They are referenced as `/files/<filename>` so your audio tag should look like:

<audio src="files/audio/cours/chorus-travail-debit.mp3" preload="auto" controls></audio>

Best wishes

Jeremy.



That does not works. I click on the play button but Tiddlywiki does not find the audio file to serve.

Any idea ? 
Is it even possible ?

With regards

Vpl


-- 
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/57867c87-b4ed-4d01-92f3-e7962a58c6ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

vpl

unread,
Nov 26, 2018, 10:58:23 AM11/26/18
to TiddlyWiki
Fantastic. This is working. I've seen the note on the pre-release mentioning the need to use this "files" directory, but I thought it was for pdf etc ,,, But obviously an .mp3 is a file ... indeed.!

 Thanks a lot!

Vpl
Reply all
Reply to author
Forward
0 new messages