I am creating a sample HTML project using IFrame player API from https://developers.google.com/youtube/iframe_api_reference#playVideo, and I would like to convert it to AMP version.
I have followed the official docs from https://amp.dev/documentation/components/amp-script/, by using <amp-script>
tag, but it doesn't work. The base.js file includes the function onYouTubeIframeAPIReady()
function, and over script:
<amp-script layout=container src="/amp/base.js">
<amp-script src="https://www.youtube.com/iframe_api">
<div id="player"></div>
</amp-script>
</amp-script>
The video doesn't appear in the rendering view.