-
Notifications
You must be signed in to change notification settings - Fork 45
Description
The vimeo player is requiring users to sign in when an unlisted event is loaded in the player.
I can easily fix the issue in the element inspector. The h param in the serialized attributes is not picking up the private string in the vimeo player. When I change the src attribute to "https://vimeo.com/event/{src_id}/embed/{h_param}?(...)", it works. It seems that you need to pass the h parameter as an URL parameter, instead of a query parameter like the current implementation tries to do.
To further elaborate with simplified urls:
<vimeo-video src="https://vimeo.com/event/{src_id}/{privacy_hash}></vimeo-video>" or <vimeo-video src="https://vimeo.com/event/{src_id}?h={privacy_hash}></vimeo-video>
is generating the following iframe:
<iframe src="https://vimeo.com/event/{src_id}/embed?preload=metadata&transparent=0&h={privacy_hash}></iframe>"
Which is asking users to sign in before the video can be viewed.
When I change the generated iframe src to this:
<iframe src="https://vimeo.com/event/{src_id}/embed/{privacy_hash}?preload=metadata&transparent=0></iframe>"
it works.
I see this structure of the iframe src behind the embed button in vimeo as well.
Unlisted videos work fine in the current implementation.
Could this be changed?
Thanks in advance!