Embedding audio not working?
I cannot seem to find a way to embed audio files uploaded to my Dropbox. I can get a link to a Dropbox-embedded audio file that will open separately and play via Dropbox, but can't seem to embed this directly. The question How to embed audio in a post? suggests i'm doing something wrong:
Can you verify that it works and/or provide an example of it being used with verification that the file is hosted on Dropbox only?
Embedding audio files will work no matter which method you use to sync your blog's folder. The trick is not to use Dropbox's sharing URL for the audio file, but to use the fact that Blot makes all of the files in your blog's folder public. For example, let's say you have an audio file called song.mp3
which you place directly inside your blog's folder in Dropbox. You'd then paste the following HTML into one of your posts to embed it:
<audio src="/song.mp3"></audio>
The example above uses an absolute path (with your blog's folder as the root directory – Blot doesn't access anything outside your blog's folder). You can also use a relative path from the post's file to the audio file, if you like.
Please let me know if you have any questions about this or anything else
Answered 3 years ago · Edit answeragain, this does not seem to work.
i have an audio file, audio.mp3, in the main Blot folder: Dropbox/Apps/Blot/audio.mp3
inserting the following text into a text file and uploading to the same main Blot folder returns no audio embedded or linked or anything other than the bullet point created from the asterisks.
<audio src="/audio.mp3"></audio>
*
<audio src="/Dropbox/Apps/Blot/audio.mp3"></audio>```
i am very much a beginner with Markdown/html/etc. but i believe i'm following the instructions as necessary. please correct me where i'm mistaken if so, or feel free to contact me directly.
Answered 3 years ago ·
Edit answer
Your blog folder is root so the following will not ever work:
<audio src="/Dropbox/Apps/Blot/audio.mp3"></audio>
However, this should work if you have stored the audio file as described:
<audio src="/audio.mp3"></audio>
Please can you contact us with a link to the page or post with the broken audio embed? We'll work out precisely what is going on
Answered 3 years ago · Edit answer