Hi,

In this GG post 
<https://groups.google.com/g/tiddlywiki/c/6yf3tOA6RH8/m/L1849adtAwAJ>, Eric 
presented a minimal use case for TW to play a sound on clicking a checkbox.

I would like to embed the mp3 (or ogg or any other compressed sound) file 
within TiddlyWiki instead of keeping it as an external source file.

We don't have any relevant tiddler content types for sound at the moment. 
Was anyone able to come up with a solution that works? Perhaps using binary 
data tiddlers?

Thanks in advance for sharing your ideas.

-Hubert

PS. Here's Eric's post for reference.

Try this:

1) Create a tiddler "DoneSound", containing:
<audio autoplay controls style="height:2em;width:10em;" >
  <source src="done.mp3" type="audio/mpeg">
</audio>

2) In your <$checkbox> widget, add a "checkactions" parameter, like this:
<$checkbox ... checkactions="""<$action-sendmessage $message="tm-notify" 
$param="DoneSound" />""">
   checkbox text goes here
</$checkbox>


-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e7b104f4-c990-48d2-9c2f-78e927989e48n%40googlegroups.com.

Reply via email to