Hello TW friends.
I'm trying to embed html5 audio players in a TWC v 2.8.1 using the audio.js script
(
http://kolber.github.io/audiojs/)
I thought it would only require linking to the relevant scripts in the MarkupPreHead tiddler
and placing the html code with the mp3 files in any given tiddler but I can't get it to work.
Please find attached two MTC's:
The test6.html file is a simple html file (not tiddlywiki) where the code works (although the music autoplays
where maybe it shouldn't).
The empty.html file is a tiddlywiki classic where the all the script from the above working example is placed in the
MarkupPreHead tiddler and the html code is placed in the AudioTest tiddler where the player is expected to show up
but it doesn't.
Any ideas?
Thanks in advance
sklpns
PS1. My real case scenario MarkupPreHead tiddler is far more complicated (linking to various scripts etc) but I thought it best
to get it to work in a simple scenario first.
PS2. Trying to get it to work using other libraries (for instance
https://amazingaudioplayer.com/) and/or other TWC versions I noticed that sometimes where the player doesn't show up it appears when the MarkupPreHead tiddler is reopened or, in browsers other than firefox (Chrome, UC Browser) double clicked and then closed. Is that a hint, maybe?
Thanks again