fancyapps / fancybox

jQuery lightbox script for displaying images, videos and more. Touch enabled, responsive and fully customizable.
http://fancyapps.com/
7.28k stars 1.78k forks source link

Vimeo Custom Urls #1551

Open stanza237 opened 7 years ago

stanza237 commented 7 years ago

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

fancyapps commented 7 years ago

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.

odahcam commented 7 years ago

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

lucasmarohn commented 4 years ago

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