Embedding Video #237
Unanswered
mikepianka
asked this question in
Support
Replies: 2 comments 4 replies
-
Actually, just a bare video tag like this seems to work pretty well on its own.
|
Beta Was this translation helpful? Give feedback.
1 reply
-
BTW, Hugo also provides built-in shortcodes for Vimeo + YouTube. I will add the video shortcode though, for it will support more use cases. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What's the best practice for embedding video?
There is a shortcode for images like this:
{{< img src="avocado.png" alt="avocado" caption="<em>A Tasty Avocado</em>" class="border border-dark" >}}
Is there something equivalent to embed a video with responsive sizing? Using something like below does not scale the size of the video properly.
<pre><div class="embed-responsive"><video autoplay loop muted playsinline><source src="pan.webm" type="video/webm"><source src="pan.mp4" type="video/mp4"></video></div></pre>
Beta Was this translation helpful? Give feedback.
All reactions