amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

Add support for Vimeo

Open kul3r4 opened this issue 10 years ago • 4 comments

Currently it's only possible show Vimeo video using amp-iframe tag. Would be better to have a proper Vimeo tag.

kul3r4 avatar Jan 19 '16 05:01 kul3r4

This would be the equivalent of amp-youtube: https://github.com/ampproject/amphtml/blob/master/extensions/amp-youtube/amp-youtube.md

The syntax should be something like <amp-vimeo data-videoid="140261017" layout="responsive" width="500" height="281"></amp-vimeo>

We should also support all the options listed here: https://developer.vimeo.com/player/embedding since it only involves changing the parameters to the src URL. We don't currently do the same thing for YouTube so this will require some investigation.

adewale avatar Jan 19 '16 09:01 adewale

I sent out a PR to add amp-vimeo. However I haven't addressed passing all the options listed in the documentation. Mainly because I have an open PR to pass data-param-* to the amp-iframe.src. I am wondering if we should be implementing amp-vimeo extra options similarly.

What do you folks think?

mkhatib avatar Feb 02 '16 03:02 mkhatib

@mkhatib For the 1st class components we use data-. data-param- is a thing for generic iframes.

cramforce avatar Feb 02 '16 03:02 cramforce

Sounds good. Let me know if I should update the pull request with that.

mkhatib avatar Feb 02 '16 03:02 mkhatib