Vimeo bug, playing: true prop does not trigger video to play inside iframe
See original GitHub issueI am working on an app with ReactPlayer rendering inside of an iFrame. All video sources work as expected except for Vimeo. Passing playing: true
to the video player does not start the video player. I forked the repo and modified the demo to illustrate the issue using two video players.
https://github.com/jmancherje/react-player/tree/iframe-bug
Steps to reproduce:
- clone this fork
npm i
to get react-frame-component- Select a Vimeo video
- click the
Play
button to send the prop to both video players - only the second video player (non-iFrame) will play correctly
- (try with any other video source and it will work as expected for both video players)
Does anyone have any insight as to what is causing this discrepancy with Vimeo vs the other video sources? I’m happy to submit a PR once the issue is isolated.
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Vimeo bug, playing: true prop does not trigger video ... - GitHub
I am working on an app with ReactPlayer rendering inside of an iFrame. All video sources work as expected except for Vimeo. Passing...
Read more >vimeo player - error - html autoplay embedded video not working
I have tried replacing &autoplay=1 with true instead of 1 and numerous other ways, when the page loads it just says Oops the...
Read more >Player SDK: Reference - Vimeo Developer
Reference. This reference guide provides comprehensive details about the methods and events for controlling an embedded Vimeo player through the player SDK.
Read more >YouTube Player API Reference for iframe Embeds
The IFrame player API lets you embed a YouTube video player on your website and control the player using JavaScript. Using the API's...
Read more >@vimeo/player - npm
Pass any element and an options object to the Vimeo.Player constructor to make an embed inside that element. The options object should consist ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for the updated demo. Looks like this is an issue with the Vimeo API and how it sends, receives and filters messages: https://github.com/vimeo/player.js/issues/16
Based on the discussion there, I’m not sure there is anything that we can do apart from wait for a fix on their end.
@CookPete Thanks for the update. I just updated the example using react-player 0.16.0 and it seems like vimeo videos are still not rendering correctly within an iframe. I made a new branch for this demo and updated the link the original issue: https://github.com/jmancherje/react-player/tree/iframe-bug
This is the error thrown when attempting to play a vimeo video:
Can you please reopen this issue?