Hello community!
We’d like to use AMP for our blog posts. Unfortunately, there seems no way to really use the full featureset of AMP in the blog. Does anybody have a similar problem and got a solution? An answer from the Hubspot team is also highly appreciated.
I will describe the problem in detail and add a feature request in the end.
Our problem
As we are working in the audio production area, we put our podcasts or small snippets of podcasts into our blog posts. That’s why it is a requirement to have at least somehow a player or in the best case our branded player (using javascript and so on) embedded in our blog posts no matter whether AMP is enabled or not.
We totally understand what AMP is all about, so we are willing to use the special AMP audio components instead of “heavy” javascript. But it seems that we are not able to implement any “AMP native” components into the blog code which then will render correctly as AMP player. The only thing we could get running was the iframe component but it isn’t the best solution for us to have an iframe in both our normal and the AMP blog.
My feature request
It would be great to use the native audio-tag (or other components) to get it converted into AMP audio without any hassle.
In addition, it would be awesome to have kind of a switch which can be used to determine, what will be used for the normal blog and what is optimized for AMP pages. I could imagine something like this:
{% if AMP_enabled %}
<amp-audio></amp-audio>
<!-- or an amp iframe which will load a small page with our custom player -->
{% else %}
<audio id="ourcustomplayer"></audio>
<!-- this will rely on a custom javascript code -->
{% endif %}
Does anybody else could need these features?
@Hubspot What do you think about it?
Thanks in advance!

