Also, can I create an invisible version of the notification message, that players the audio, but does not show the other tiddler?
On Tuesday, 20 October 2020 at 15:14:57 UTC-5 Game Dungeon wrote: > To be even more specific this: > > http://inmysocks.tiddlyspot.com/#Embedding%20Audio > > (Ps. how do you edit a post on google groups?) > > On Tuesday, 20 October 2020 at 15:11:19 UTC-5 Game Dungeon wrote: > >> Tones, >> >> With a little help from this (http://inmysocks.tiddlyspot.com/# ), I was >> able to figure it out. >> >> Game >> >> On Tuesday, 20 October 2020 at 01:00:41 UTC-5 TW Tones wrote: >> >>> Eric, >>> >>> Thanks for filling in the gaps. Do you know how to import a sound file >>> and address it in the audio tag? >>> >>> Tones >>> >>> >>> On Tuesday, 20 October 2020 15:08:01 UTC+11, Eric Shulman wrote: >>>> >>>> On Monday, October 19, 2020 at 7:14:11 PM UTC-7, Game Dungeon wrote: >>>>> >>>>> >>>>>>> I want to play a short little ding every time I check something off >>>>>>> my to-do list. Any way to do that in ~TiddlyWiki? >>>>>>> >>>>>> >>>> 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> >>>> >>>> 1) The audio element uses "autoplay" and "controls", with a style >>>> attribute to make the display of the controls more compact than the >>>> default >>>> appearance. >>>> 2) The $checkbox widget uses checkactions="..." to send a "tm-notify" >>>> message to display the DoneSound contents in the upper right corner of the >>>> page. >>>> 3) Note that the notification message has a display duration of 3 >>>> seconds, so it will only play up to 3 seconds of sound before >>>> automatically >>>> going away. >>>> >>>> enjoy, >>>> -e >>>> >>> -- 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/f4eac113-63cf-4f54-a81b-6f437f004928n%40googlegroups.com.