Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unlisted Vimeo videos no longer working do to privacy updates #440

Open
skyeklein opened this issue Jul 24, 2023 · 2 comments
Open

Unlisted Vimeo videos no longer working do to privacy updates #440

skyeklein opened this issue Jul 24, 2023 · 2 comments

Comments

@skyeklein
Copy link

skyeklein commented Jul 24, 2023

Describe the bug
Vimeo have updated their embed functionality to require a "privacy hash" querystring parameter for unlisted videos.
More information here

Unlisted Vimeo videos loaded into GLightbox now result in a "Sorry this video does not exist" message as the required querystring is not being added to the iframe src URL.

Are you able to reproduce the bug in the demo site
No

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://www.cabrini.com.au/doctor-portal/resources/
  2. Click on "2023 dates and presentations"
  3. Click on "Workplace decisions: how do we decide what’s best and why?"
  4. See "Sorry this video does not exist" message
  5. Using inspector, dig down to the current GLightbox iframe
  6. Append the &h=d30c95d242 security hash to the iframe src so it now reads https://player.vimeo.com/video/846486260?loop=false&autoplay=false&muted=false&gesture=media&playsinline=false&byline=false&portrait=false&title=false&speed=true&transparent=false&customControls=true&h=d30c95d242
  7. Hit enter - video should now display correctly

Expected behavior
Iframe rendering code should extract the ?h=xxxx param from the Vimeo link href and append it to the iframe src along with the rest of the params

Post the code you are using

const videoModal = () => {
  GLightbox({
    selector: 'a[href*="vimeo.com"]',
    touchNavigation: true,
    autoplayVideos: true
  });
}

Screenshots
image

Desktop:

  • OS: Mac OS 13.0.1
  • Browser Brave
  • Version 1.56.11 (latest build as of July 2023)
@mpmrepository
Copy link

Has anyone found a way around this? I'm struggling

@skyekleinversa
Copy link

Has anyone found a way around this? I'm struggling

I haven't had time dig any deeper
In the meantime, changing the privacy setting for affected videos from "private" to "hide from Vimeo" fixes the issue.
It's not a perfect solution, but did the job in our case, for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants