Hi guys,
I have a website and i want to embed my twitch live in the standard version of the site and also in the Google AMP version, but i have problems with this last one.
This is a standard page, and the embedding works
https://www.nerdream.it/2021/01/26/recensione-majesty-la-tua-corona-il-tuo-regno-asmodee-italia/
If I add “amp” at the end of the link, all work well, but when i try to search this page on google, i have another AMP link:
In this link the embed video doesn’t work.
ATTENTION - You have to open it from a mobile device, not desktop, beacause with a pc there is a redirect to the standard version.
I have used the amp-iframe script in the header:
< script async custom-element=“amp-iframe”
src=“https://cdn.ampproject.org/v0/amp-iframe-0.1.js”>< / script>
And this one in the first single content area:
< amp-iframe width=“400” height=“225”
sandbox=“allow-scripts allow-same-origin”
layout=“responsive”
src=“https://player.twitch.tv/?channel=nerdream_it&parent=www.nerdream.it&parent=www.google.com&parent=google.com&muted=true”>
< / amp-iframe>
Thanks in advance if someone can help me.
warm regards,
Valerio