amp-vimeo
Introduction
Use amp-vimeo
to embed Vimeo videos in your AMP HTML files.
Setup
Import the amp-vimeo
component in the header.
<script async custom-element="amp-vimeo" src="https://cdn.ampproject.org/v0/amp-vimeo-0.1.js"></script>
Basic usage
Embed Vimeo videos via the videoid
in a video's URL. We recommend using the responsive layout for videos.
<amp-vimeo data-videoid="27246366" layout="responsive" width="16" height="9"></amp-vimeo>
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.
Se rendre sur Stack Overflow Une fonctionnalité n'a pas encore été expliquée ?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.
Modifier l'exemple sur GitHub-
Written by @sebastianbenz