Google AMP Embedding problem - connection refused by twitch player

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:

https://www.google.com/amp/s/www.nerdream.it/2021/01/26/recensione-majesty-la-tua-corona-il-tuo-regno-asmodee-italia/%3famp

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

Try

https://player.twitch.tv/?channel=nerdream_it&parent=www.nerdream.it&parent=www.google.com&parent=google.com&parent=www-nerdream-it.cdn.ampproject.org&parent=search.google.com&muted=true#amp=1

2 Likes

Thank you very much!

:heart_eyes: :heart_eyes: :heart_eyes: :heart_eyes:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.