Open genekogan opened 4 years ago
Did you to embed?
No, I ended up using an iframe. I'd still like to figure this out if I could...
Embedding using iframe
worked for me: https://fancyapps.com/docs/ui/fancybox/plugins/html/#iframe
<a data-type="iframe" href="[link to GDrive video]" data-fancybox="gallery-video">
How do I embed an external video from GDrive in FancyBox? I tried by getting my shared video's iframe embed code and inserting like this:
On my laptop (Mac), this works reliably in Chrome, Safari, and Firefox. On my IPhone however, the embed fails on click, showing just a black box for the video. In the developer console, I get an error about same-origin-policy (not sure why this doesn't prevent it from working on laptop):
Is there a better way of doing this than using an iframe or a fix to this problem? I am also open to hosting the videos elsewhere. My goal is for FancyBox to embed large videos hosted on external site (e.g. Dropbox, GDrive) rather than my own website, with a preference to avoid using YouTube or Vimeo or other social/sharing sites if I can.