react-player icon indicating copy to clipboard operation
react-player copied to clipboard

Vimeo playback doesn't work

Open j13y opened this issue 6 years ago • 14 comments

Vimeo player stopped working without any changes. Youtube video works. I use react-player v1.14.2.

Vimeo player is loaded (https://player.vimeo.com/api/player.js) and video's placeholder is embedded but video files are missing in source code.

Vimeo has changed something or kind of bug in react-player?

j13y avatar Dec 10 '19 20:12 j13y

Having the same issue. In Vimeo.js

Error: Vimeo.js:124 Uncaught (in promise) TypeError: Cannot read property 'Player' of undefined

Version: 1.11.1

malik-sahab avatar Dec 12 '19 15:12 malik-sahab

same issue as @malik-sahab

shayanalis avatar Dec 12 '19 15:12 shayanalis

I'm experiencing this issue as well. It has something to do with the URL parameters added to the iframe source as removing them embeds the player as normal. Specifically controls=0

joeyparis avatar Dec 12 '19 16:12 joeyparis

Can someone try to reproduce this in a jsFiddle? Hard to debug if I can't make it happen. Things seem ok here: https://jsfiddle.net/z2kmhdfp/

cookpete avatar Dec 13 '19 09:12 cookpete

It works for me if I add controls prop. I don't remember exactly but previously, without this prop player shows play button at the center of the video. Currently, it shows a full control bar.

j13y avatar Dec 13 '19 09:12 j13y

It also works for me if add the controls prop, which was not required before.

On Fri, Dec 13, 2019 at 4:28 AM Jarek Pelczynski [email protected] wrote:

It works for me if I add controls prop. I don't remember exactly but previously, without this prop player shows play button at the center of the video. Currently, it shows a full control bar.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/CookPete/react-player/issues/762?email_source=notifications&email_token=AAKQJDR6UFDVJWJSMEHXZ7TQYNIUJA5CNFSM4JZEDNS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGZNMZQ#issuecomment-565368422, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKQJDWYDCXTDOAX6Q3RZILQYNIUJANCNFSM4JZEDNSQ .

joeyparis avatar Dec 14 '19 16:12 joeyparis

Again, can anyone reproduce this in an example repo or jsFiddle? This fiddle has a vimeo URL played using v1.14.2, which seems to work fine both with or without controls prop.

ReactPlayer loads the player SDK from https://player.vimeo.com/api/player.js (a non-versioned URL, so presumably gets the latest version of the SDK every time), which is open sourced at https://github.com/vimeo/player.js, so it may well be a problem on that end. Support for controls was only recently added to the Vimeo SDK and added to ReactPlayer in https://github.com/CookPete/react-player/commit/74bc8e0f9b40444be6d9d0b76bdc392dd1010a04

cookpete avatar Dec 15 '19 10:12 cookpete

@CookPete can not reproduce.

j13y avatar Dec 15 '19 22:12 j13y

Sorry to open this up. I just encounter this issue in v1.14.2.

Some videos work fine without the controls prop, others do not.

  • Does NOT work without controls prop https://vimeo.com/159748388
  • Works without controls props https://vimeo.com/243556536

lulitd avatar Feb 19 '20 07:02 lulitd

https://vimeo.com/159748388 works fine for me without controls:

image

cookpete avatar Feb 19 '20 10:02 cookpete

@CookPete Thanks for the quick reply. You're correct, it does play without the controls props.

The inconsistency between the two videos when controls prop is not included threw me off.

https://vimeo.com/243556536 shows the controls without using controls prop, whereas https://vimeo.com/159748388 does not show the controls. I am presuming this has to do with the video settings set by the Vimeo user but will have to double-check.

This is what happens when I code past midnight.

lulitd avatar Feb 19 '20 14:02 lulitd

Here I still get this error, even passing controls = {false}.

My version is 1.15.3

My code:

<ReactPlayer
     className='react-player'
     url={`https://vimeo.com/243556536`} 
     controls={false}
     playing
  />

Any other suggestions on how to make it work?

AnderAmorim avatar Mar 31 '20 19:03 AnderAmorim

I would set the speed to true in the source code of the react-player, speed false by default

IMG_20210325_145703

bariscigim avatar Mar 25 '21 12:03 bariscigim

@cookpete Hello.

Lately playback doesn't work in our web, so I tried https://cookpete.com/react-player/ demo to play Vimeo video link which is currently used on my web. Youtube link is okay with 2x play speed but the Vimeo link is not working. I am using latest React-player version

Tuguldur007 avatar Apr 12 '21 05:04 Tuguldur007