fancybox icon indicating copy to clipboard operation
fancybox copied to clipboard

Vimeo Custom Urls

Open stanza237 opened this issue 8 years ago • 3 comments

Hello, if a Vimeo User has customized his video url, fancybox 3 can't handle the redirect and doesn't play it. Example: https://codepen.io/stanza237/pen/brdXdp

stanza237 avatar Jul 27 '17 14:07 stanza237

Hi,

Right now, the script works by simply extracting video ID from URL and creating embedded code. To make these custom urls work, this algorithm should be rewritten to use oEmbed. I wanted avoid this, because this is an extra html request, but seems that it should be done.

fancyapps avatar Jul 27 '17 14:07 fancyapps

fancyBox could have a helper/plugin for doing this. OwlCarousel plugins are a great example of this kinda functionality.

odahcam avatar Sep 27 '17 15:09 odahcam

Posting here to help others with this issue: I was able to work around this by using the url in the vimeo embed code, rather than the video link.

The code in the vimeo iframe will include the video iframe. e.g. player.vimeo.com/video/ID

Using that url works

lucasmarohn avatar Sep 09 '20 20:09 lucasmarohn