I test without those js code, however, it didn’t help. Every single video need about 5s to render before could play, which are just blank at first. What quite annoy is, the render-time equals video counts x 5s, which means if I have 10 videos in a file, it would takes about a minute to render before any of them could play, and any change-markdown-display operation would reset this process.
If anyone know how to insert video in a markdown with an acceptable rendering time, it would be greatly appreciated. Any other way to do it are also welcome to discuss.
The video files are .mp4 h.264,
.gif and !(video-link) are also tried but if I insert about more than 5 videos, the page starts to get stuck.
BTW, the videos are small, around 1-10Mb each.
observer this browser’s behaviour when accessing the video
Is it different from what you see in DT?
It might also be worthwile to use a file:/// URL instead of a x-devonthink-item one.
Having said that: What exactly is the point of having “quite amount of videos in a markdown” file? Markdown is about structured content, not about multimedia data. That is not to say that it’s not possible to include video, audio, whatever HTML element you fancy into an MD file. Just that the format was not meant for that, so the result might somehow disappoint.