amp-youtube


To save a Youtube video on a valid template AMP HTML for Blogger/Blogspot, on tag <head> must be the amp-youtube script like this :

<script async='async' custom-element='amp-youtube' src='https://cdn.ampproject.org/v0/amp-youtube-0.1.js'/>

then how the writing on the template/postings like this (the size of a match):

  <amp-youtube width="480"
height="270"
layout=responsive
data-videoid="lBTCB7yLs8Y">
</amp-youtube>

Code lBTCB7yLs8Y is the code obtained from the Youtube URL. Sample video by applying the code above, like this:




Layouts that support: fill, fixed, fixed-height, flex-item, nodisplay, responsive
Due to the limited capabilities of a mobile browser, then it cannot auto play to amp-youtube.

You Might Also Like:

Disqus Comments

Hello, how may we help you? Just send us a message now to get assistance.

Facebook Messenger ×