Description | Displays a Vimeo video. |
Availability | Stable |
Required Script | <script async custom-element="amp-vimeo" src="https://cdn.ampproject.org/v0/amp-vimeo-0.1.js"></script> |
Examples | amp-vimeo.html vimeo.amp.html |
With responsive layout, the width and height from the example should yield correct layouts for 16:9 aspect ratio videos:
<amp-vimeo
data-videoid="27246366"
layout="responsive"
width="500" height="281"></amp-vimeo>
data-videoid
The Vimeo video id found in every Vimeo video page URL
E.g. in https://vimeo.com/27246366 27246366 is the video id.
The following lists validation errors specific to the amp-vimeo
tag
(see also amp-vimeo
in the AMP validator specification):
Validation Error | Description |
---|---|
The 'example1' tag is missing or incorrect, but required by 'example2'. | Error thrown when required amp-vimeo extension .js script tag is missing or incorrect. |
The mandatory attribute 'example1' is missing in tag 'example2'. | Error thrown when data-videoid attribute missing. |
The attribute 'example1' in tag 'example2' is set to the invalid value 'example3'. | Error thrown when the data-videoid attribute is invalid. Only integers allowed. |
The implied layout 'example1' is not supported by tag 'example2'. | Error thrown when implied layout is set to CONTAINER ; this layout type isn't supported. |
The specified layout 'example1' is not supported by tag 'example2'. | Error thrown when specified layout is set to CONTAINER ; this layout type isn't supported. |
The property 'example1' in attribute 'example2' in tag 'example3' is set to 'example4', which is invalid. | Error thrown when invalid value is given for attributes height or width . For example, height=auto triggers this error for all supported layout types. |