Closed kordwarshuis closed 3 months ago
Various ways of linking do not work:
It is unclear how one should embed a video in Docusaurus. The documentation is not helping.
How hard should it be to embed a video?
I took the code from another website (https://blockchainbird.github.io/spec-up-t-website/docs/various-roles/admins-guide), the same Docusaurus version:
A: here it works:
Markup in markdown file:
<video controls>
<source src={require('@site/static/video/installer-spec-up-t.mp4').default} type="video/mp4" />
Your browser does not support video tags.
</video>
Output:
<video controls=""><source src="/spec-up-t-website/assets/medias/installer-spec-up-t-392cc74350811a36e6a9f89b426fa51b.mp4" type="video/mp4"><p>Your browser does not support video tags.</p></video>
B: This does not work:
Markup in markdown file:
====
<video controls>
<source src={require('@site/static/video/kerific-explainer-1.mp4').default} type="video/mp4" />
Your browser does not support video tags.
</video>
Output:
<video controls=""><source src="data:video/mp4;base64,dmVyc2lvbiBodHRwczovL2dpdC1sZnMuZ2l0aHViLmNvbS9zcGVjL3YxCm9pZCBzaGEyNTY6YWUxNzhiYjE0ZTliYTIxNGJiYjdjZTc0ZTU1MDM1MjQ0YzQ1ZTFkYmM1NjY0Nzg3YzQ0MmVjMTcyNTQ2NjUxNApzaXplIDE1MjQ5MjgK" type="video/mp4"><p>Your browser does not support video tags.</p></video>
The code is identical, except for the paths to the mp4 files.
Action: Find out if it is an mp4 encoding problem.
Kerific Instruction video src is 404.
https://weboftrust.github.io/keridoc/docs/how-we-did/kerific-browser-extension