amp-jwplayer extension to embed jwplayer videos in your AMP HTML files.
amp-jwplayer component in the header.
<script async custom-element="amp-jwplayer" src="https://cdn.ampproject.org/v0/amp-jwplayer-0.1.js"></script>
Embed jwplayer videos via the
data-player-id attributes. We recommend using the responsive layout for videos.
<amp-jwplayer data-media-id="BZ6tc0gy" data-player-id="uoIbMPm3" layout="responsive" width="16" height="9"> </amp-jwplayer>
It's also possible to embed a jwplayer video playlist via the
<amp-jwplayer data-playlist-id="482jsTAr" data-player-id="uoIbMPm3" layout="responsive" width="16" height="9"> </amp-jwplayer>
If the explanations on this page don't cover all of your questions feel free to reach out to other AMP users to discuss your exact use case.Ir para Stack Overflow An unexplained feature?
The AMP project strongly encourages your participation and contributions! We hope you'll become an ongoing participant in our open source community but we also welcome one-off contributions for the issues you're particularly passionate about.Editar exemplos do GitHub
Written by @jmadler