AMP compatible
-
Hi,
I’m using AMP to my site and it’s hard to add a video.
Here’s how I embed video in desktop.
<script data-config="//config.playwire.com/1007845/videos/v2/5300888/zeus.json" data-height="100%" data-width="100%" src="//cdn.playwire.com/bolt/js/zeus/embed.js" type="text/javascript"></script>
For AMP version here’s how I put video:
<amp-iframe width="400" height="225" sandbox="allow-scripts allow-same-origin" layout="responsive" src="https://cdn.video.playwire.com/1007845/videos/5300888/video-mobile.mp4"> <amp-img placeholder layout="fill" src="https://cdn.video.playwire.com/1007845/videos/5300888/poster_0000.png"></amp-img> </amp-iframe>
In AMP to add video I need to find the url first for the video by accessing the json config of playwire. Is there a fastest way to find the video and poster url?
Thank you.
- The topic ‘AMP compatible’ is closed to new replies.