How to use the Podigee Podcast Player on AMP pages
To use the Podigee-Podcast-Player on AMP pages a special embed code is required. It can be created from the information included in the standard embed code.
Standard embed code
<script src="https://cdn.podigee.com/podcast-player/javascripts/podigee-podcast-player.js" data-configuration="https://podcast.podigee.io/embed?context=external"></script>
AMP embed code
For the AMP variant, the URL from the data-configuration
attribute of the standard embed code needs to be complemented with the parameter amp=true
and used as the src
of the amp-iframe
element. If you use a custom theme you will also need to change the height
attribute.
<amp-iframe src="https://podcast.podigee.io/embed?context=external&=true" height="150" scrolling="no" sandbox="allow-scripts allow-same-origin allow-top-navigation" layout="fixed-height"></amp-iframe>