On Jan 3, 2018, at 10:04 AM, Martin Vahi <[email protected]> wrote:
>
> I know that the way to embed an image is by
>
> 
>
> but it does not seem to work with the WebM videos.
>
> https://www.webmproject.org/
There is no standard syntax for embedding video into Markdown. Sources:
https://daringfireball.net/projects/markdown/syntax
http://spec.commonmark.org/0.28/#images
https://www.fossil-scm.org/index.html/wiki_rules
The best you can do, short of getting Fossil to add nonstandard syntax — which
is the problem that lead to the development of CommonMark — is to wrap an image
thumbnail in a video link:
https://stackoverflow.com/questions/14192709/
If the video is going to live in the Fossil repository, the video link will be
an embedded documentation link (/doc/trunk/path/to/video.webm) so you will also
need to edit the MIME type list in src/doc.c, adding this:
{ "webm", 4, "video/webm" },
{ "mkv", 4, “video/x-matroska" },
You must then use one of those two file name extensions in the embedded
documentation URL.
This does mean the video won’t play inline within the rendered Markdown page.
Clicking the link will take you to another page with the video playing.
If that’s a problem for you, solving it would bring us right back to
nonstandard syntax, it begs a bunch of questions, such as “How do you specify
autoplay?” and “How do you control all of the other <video> attributes?”
> I suspect that
> I asked something similar in the past
Yup:
https://www.mail-archive.com/[email protected]/msg22536.html
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users