I have a number of markdown files in DEVONthink on my Mac which make use of embedded audio using the following markup:
<audio controls="1" controlslist="nodownload nofullscreen noremoteplayback" src="x-devonthink-item://9CFD5BD2-EB05-41EB-83EB-88A666381953">Your browser does not support the audio tag.</audio>
This works wonderfully on the mac and is incredibly convenient, as I can keep the audio player close to the area in my notes to which it is appropriate. Notably, it works both when using an item link or a relative path for the src attribute (an item link is generally advisable though as it will survive replication, whereas a relative path is only relative to one copy of the file). Itâs great!
Unfortunately, this doesnât seem to work in DEVONthink To Go. I have made sure the target items are in a folder which is marked as âalwaysâ download (rather than âon demandâ), so the files are downloaded to my device, but it seems like referring to other files like this (whether by item link or by relative path) just isnât supported in DTTG. The audio player interface appears but reports âerrorâ, as if the web view canât find the file at that URL.
It would be great if this could be made to work as it does on the Mac, as I would love to be able to read my notes with audio embeddings on the iPad!
is there a way to use a DevonThink item link instead of the audio file (I drag and drop it, and it works)? @aedwards stated by using the item link, moving around the audio file wonât break the linkage to the audio player.
Method used: Drag and drop from group where the audio is stored, to this markdown file
All 9 Solfeggio Frequencies - Full Body Aura Cleanse & Cell Regeneration Therapy (128kbit_AAC).m4a
NOTE: on my local DevonThink the player shows the correct duration, and is playable
Markdown Used: NOTE: DO NOT COPY AND PASTE THE BELOW CODE, SEE LAST ENTRY
<audio controls=ââ><source src=âAll%209%20Solfeggio%20Frequencies%20-%20Full%20Body%20Aura%20Cleanse%20&%20Cell%20Regeneration%20Therapy%20(128kbit_AAC).m4aâ></audio>
All 9 Solfeggio Frequencies - Full Body Aura Cleanse & Cell Regeneration Therapy (128kbit_AAC).m4a Method used:
Use step 1 above created link, replaced source src with pasted âcopy item linkâ from right click menu from above pane (inbox ⌠âname of group where I stored audio file in DevonThinkâ -where I stored the audio file. pasting between ââ after src="
NOTE: On my local machine, DevonThink shows the player having 00:00 time and is not playable
Markdown used: NOTE: DO NOT COPY AND PASTE THE BELOW CODE, SEE LAST ENTRY
<audio controls=ââ><source src=â[Pure Frequency Specific Sound Baths _ 30 Minutes Each Chakra _ Singing Bowl Meditation Music _ Relax (192kbit_AAC).m4a]/(x-devonthink-item://E8472103-00C2-4DAE-BCED-66A53EBDB525)â></audio>
I tried a 3rd variation. As per @chrillek I verified I was using straight quotes (standard on a mac keyboard), and I removed the src, leaving just source= and source = (with a space). Neither resulted in a playable audio file.
I was able to get the audio file to play, using the exact markdown that @kidviddy used, while removing nodownload nofullscreen noremoteplayback. I had to keep the audio controls=â1â
Note: the above code was edited, after @chrillek taught me to use the backtick (upper left on macOS english keyboard under ESC key), see chronologically later for his instruction. I also removed the unnecessary text.
Please do not post code in the normal text here. Instead, include in three backticks like so:
``` code goes here
```
That prevents these stupid curly quotes appearing in HTML elements, where they have no place. And it helps people to copy/paste your code (and get something usable).
Example:
<audio controls="1" src="x-devonthink-item://E8472103-00C2-4DAE-BCED-66A53EBDB525">Your browser does not support the audio tag.</audio>
You can, BTW, remove the content of the element (âYour browser does not support the audio tagâ>: Audio element | Can I use... Support tables for HTML5, CSS3, etc
The only current browser not supporting audio is Opera mini. With which youâll probably not run DT.
For all future people reading this, I appreciate learning from @chrillek and this thread has taught me a lot about markdown, and how to post properly into DevonThink discourse.