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

Playing back private vimeo videos #593

Open
3 tasks
misha-panyushkin opened this issue May 29, 2017 · 5 comments
Open
3 tasks

Playing back private vimeo videos #593

misha-panyushkin opened this issue May 29, 2017 · 5 comments
Labels

Comments

@misha-panyushkin
Copy link

misha-panyushkin commented May 29, 2017

  • Issue does not already exist

Expected behaviour

Authorization via app credits or playing back anyway if allowed

Actual behaviour

404 on requesting video via oembed

Environment

  • Browser: Chrome
  • Version: Version 58.0.3029.110 (64-bit)
  • Operating System: OSX
  • Version: Latest

Players affected:

  • HTML5 Video
  • Vimeo

Steps to reproduce

  • provide private full link to the allowed for embedding vimeo video

Relevant links

@friday friday added the Feature label May 25, 2018
@Chalderrr
Copy link

Any chance this is being looked into or if there is a temporary workaround?

@albalooshi
Copy link

Hi, We are also interested in this

@ctsstc
Copy link

ctsstc commented Oct 15, 2021

To my knowledge private vimeo videos are just /videoId/secretId
I also noticed on their Share -> iframe it puts the url as /videoId?h=secretId
ie: https://player.vimeo.com/video/videoId?h=secretId

I tried both of these variations and neither worked.

Edit:
It also seems these variations are trying to be handled in the source code:

// Try to extract a hash for private videos from the URL
function parseHash(url) {
/* This regex matches a hexadecimal hash if given in any of these forms:
* - [https://player.]vimeo.com/video/{id}/{hash}[?params]
* - [https://player.]vimeo.com/video/{id}?h={hash}[&params]
* - [https://player.]vimeo.com/video/{id}?[params]&h={hash}
* - video/{id}/{hash}
* If matched, the hash is available in the named group `hash`
*/
const regex = /^.*(?:vimeo.com\/|video\/)(?:\d+)(?:\?.*&*h=|\/)+(?<hash>[\d,a-f]+)/;
const found = url.match(regex);
return found ? found.groups.hash : null;
}

It seems that the code extracts the hash, but then I'm not seeing it utilized in the iframe src.

@ctsstc
Copy link

ctsstc commented Oct 15, 2021

Seems like this was handled in the latest version released 2 days ago: #2322

I think this issue can likely be closed. It seems I need to update to the latest version 🎉

@maxfenton
Copy link

maxfenton commented Mar 14, 2022

It’s not documented, but it seems like this works when data-plyr-embed-id="[complete vimeo URL including id and hash]", but does not work with just data-plyr-embed-id="[id]/][hash]" — I hope that helps someone out.

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

No branches or pull requests

6 participants