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

Fix Vimeo link validation. #348

Closed
wants to merge 2 commits into from
Closed

Fix Vimeo link validation. #348

wants to merge 2 commits into from

Conversation

pawelnvk
Copy link

@pawelnvk pawelnvk commented Mar 4, 2018

There is an issue, when using player with some of Vimeo links.

Sharing this video https://vimeo.com/249675407 using Vimeo's share button generates link as follows: https://vimeo.com/yannickcerrutti/annecydroneinmotion. Such link isn't treated as Vimeo's, but it should be. I propose simplifying regex - there is no need for such complexity due to of possible variations of links.

I've also spotted corrupted file link which I've replaced with working one so that test would pass again.

@cookpete
Copy link
Owner

The tests were failing because your implmentation broke the URL switching logic when the Vimeo player was already loaded. A numeric video ID was required for loading a new video into an existing player.

As of 1.3.0, all vimeo URLs should now be supported, and switching to another vimeo URL will simply load a new player instance.

@pawelnvk
Copy link
Author

It's super weird. Locally tests were passing. Error in Travis Ci occurred in different place in one of the test runs.
Anyway, thanks for help and introducing this feature. I really appreciate it.

@cookpete
Copy link
Owner

It's super weird. Locally tests were passing. Error in Travis Ci occurred in different place in one of the test runs.

Yeah.. #332 (comment)

david-hub024 pushed a commit to david-hub024/React_VideoPlayer that referenced this pull request Dec 23, 2018
david-hub024 pushed a commit to david-hub024/React_VideoPlayer that referenced this pull request May 23, 2020
albanqoku added a commit to albanqoku/react-player that referenced this pull request Feb 24, 2021
Webmaster1116 added a commit to Webmaster1116/video-player that referenced this pull request May 20, 2021
webmiraclepro added a commit to webmiraclepro/video-player that referenced this pull request Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants