It worked! Thank you Saq.

Quick follow-up question: I've tested that on an mp3 file and it worked, 
even though you used "video/mp4" as data type. Is this data type universal 
for mpeg "specification" of files (mp3, mp4 etc, no matter if it's audio or 
video) or is this just a meaningless placeholder that will also accept 
non-mpeg filetypes, like ogg etc?

Regards,
Hubert
On Wednesday, 20 January 2021 at 12:41:08 UTC [email protected] wrote:

> Again untested code but try this:
>
> <audio src={{{ [[data:video/mp4;base64,]addsuffix{TiddlyWiki.mp3}] }}} 
> autoplay />
>
> On Wednesday, January 20, 2021 at 1:29:57 PM UTC+1 Hubert wrote:
>
>> Thank you Sylvain.
>>
>> I was able to embed the mp3 file and play it with a press of a button. 
>> Unfortunately, unlike in the case of "referenced" (external) files, 
>> autoplay doesn't seem to work for *embedded *files (I've checked that on 
>> TiddlyWiki.com as well).
>>
>> When I put this into a tiddler and then open that tiddler, the sound does 
>> not play:
>>
>> <audio controls autoplay>
>>   <source src="TiddlyWiki.mp3" type="audio/mp3">
>> </audio> 
>>
>> Is there anything else I'd need to do for autoplay to work for *embedded 
>> *files?
>>
>> Thanks again,
>> Hubert
>>
>> On Wednesday, 20 January 2021 at 12:04:19 UTC [email protected] wrote:
>>
>>> Le mercredi 20 janvier 2021 à 11:35:41 UTC+1, Hubert a écrit :
>>>
>>>>
>>>> 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.
>>>>
>>>
>>>
>>> Hello Hubert,
>>>
>>> Did you see this : https://tiddlywiki.com/#Audio
>>>
>>> Tiddler TiddlyWiki.mp3 is set to audio/mp3 content type.
>>>
>>>
>>> Cheers,
>>> Sylvain
>>>
>>

-- 
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/6e5c4dbd-156a-42c4-875c-a540a492af2fn%40googlegroups.com.

Reply via email to