--- title: "Embed Video Files" date: "2022-04-26T01:16:18+02:00" draft: false comments: false socialShare: true toc: false --- Use the [video shortcode](https://github.com/schnerring/hugo-theme-gruvbox/blob/main/layouts/shortcodes/video.html) to embed your video files from [Hugo Page Resources](https://gohugo.io/content-management/page-resources/). {{< video src="my-video" autoplay="true" controls="false" loop="true" >}} With a page bundle looking like the following: ```text embed-videos/ |-- index.md |-- my-video.jpg |-- my-video.mp4 |-- my-video.webm ``` You can embed `my-video` like this: ```markdown {{}} ``` The shortcode looks for media files matching the filename `my-video*`. For each `video` MIME type file, a `` element is added. The first `image` MIME type file is used as `poster` (thumbnail). It will render the following HTML: ```html ``` You can set a Markdown `caption`, wrapping the `