-
Notifications
You must be signed in to change notification settings - Fork 4
Flatpages_add_videos
First of all you need to open the edit page for the Flatpage you want to edit. See Edit and create Flatpages for instructions.
In the page editor for the desired language, enter the code editor by pressing the button that looks like </>
Use this HTML-code as a template for adding a video:
<video preload="metadata" controls="" muted="" poster="/path/for/poster-image.png">
<source src="/path/for/mp4-video.mp4" type="video/mp4">
<source src="/path/for/webm-video.webm" type="video/webm">
Your browser does not support the video tag.
</video>
Replace /path/for/poster-image.png
with the relative path to the file, or the full url like https://example.com/poster-image.png
Replace /path/for/mp4-video.mp4
with the relative path to the file, or the full url like https://example.com/mp4-video.mp4
Replace /path/for/webm-video.webm
with the relative path to the file, or the full url like https://example.com/webm-video.webm
Select the spot where you want the video to appear at. Copy the url of the video and press the button that looks like a video camera. Paste the url into the box that opens.