Why stop at images? Video is used widely in all kinds of sites, including e-commerce and news pages. Let's add a promotional video to our product page. There are different ways to do this depending on whether the video is self-hosted or provided by a third-party video service, such as YouTube.
Adding video to AMP pages
Hosting your own videos with <amp-video>
The first way to embed video in AMP is to use amp-video. This is an AMP replacement for the HTML5 video tag. You should use this if you want to host the video yourself.
First, as usual, you need to import the component:
<script async custom-element="amp-video" src="https://cdn.ampproject.org/v0/amp-video-0.1.js"></script>
Then...