well here you go, go find your fav sound and insert into the html audio 
element src's or make tiddlers for the audio element and transclude the 
tiddlers in place of html audio element.

basically a 2 state "slide" button with 2 reveals to alternate between 2 
instanves of the same audio element so it resets with each button even if 
if currently playing the audio -- but 2 different audio files could also be 
used- one for each state of the "slide" button.-- I need to duuble check if 
I tested the alternating reveals o sn audio tiddler

<!-- buttons with reveals to toggle 2 buttons in 1 --><$reveal type="match" 
state="$:/state/audtstbtn" text=""><$button set="$:/state/audtstbtn" 
setTo="2" >button</$button></$reveal><$reveal type="match" 
state="$:/state/audtstbtn" text="2"><$button set="$:/state/audtstbtn" 
setTo="" >button2</$button></$reveal>
<!-- 2 reveals with reveals to toggle 2 buttons in 1 audio source for 
external audio files, audio element can be replaced with transclusions of 
tiddlers containing the audio element omitting the controls attribute makes 
the audio element autoplay makes it play automatically -->
<$reveal type="match" state="$:/state/audtstbtn" text=""><audio autoplay 
controls><source src="file:///d:/00/01twbu2/darkforebodingpiano.mp3" type=
"audio/mpeg"></audio></$reveal>
<$reveal type="match" state="$:/state/audtstbtn" text="2"><audio autoplay 
controls><source src="file:///d:/00/01twbu2/darkforebodingpiano.mp3" type=
"audio/mpeg"></audio></$reveal>



-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d9f4c83c-6666-4a2d-9e56-605512c80c3f%40googlegroups.com.

Reply via email to