PT
  • websites

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>
Precisa de explicações mais detalhadas?

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 o Stack Overflow
Falta explicar algum recurso?

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 amostra no GitHub