Video Embedding Demo

January 10, 2024 dummy demo video media


This post demonstrates how to embed videos in your blog posts.

Local Video

You can embed a local video using the video.html include. Make sure to place your video file in the images or assets folder.


{% include video.html path="/images/sample_video.mp4" caption="A sample local video" %}

(Note: Since we don’t have a real video file at that path, this will show the player but won’t play anything. Please add a valid .mp4 file to your images folder and update the path.)

A sample local video

YouTube Video

You can also embed YouTube videos using the youtube.html include and the video ID.


{% include youtube.html id="M7lc1UVf-VE" caption="YouTube Developers Example" %}

YouTube Developers Example


Comments