-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Light Mode Shows No Preview Image #1142
Comments
This comment probably applies here: #1130 (comment) Check the URL you are trying to use on https://noembed.com/demo If you have a URL to an image, you can pass it in to the <ReactPlayer url={url} light='https://example.com/thumbnail.jpg' /> |
Yeap, I saw this. |
Interesting. Is there a console error (or network error) when your app makes the request to noembed?
If you're not able to pass image URLs to |
Thanks for the reply! Nope, there is no console error. The interesting part is it was working 3 or 4 weeks ago. Last question: Do you think there is a way to reduce the CPU usage when I use react-player without the light mode? Thanks again for your time! |
Had the same issue. Turning off adblock might help someone else! |
react-player's light mode shows no preview image. There was no problem with preview images in light mode but somehow this started to happen.
Here is a screenshot of the issue: https://ibb.co/hdLdGmv
My version of react-player is 2.7.0.
Here is how I use it in my GatsbyJS website:
<ReactPlayer css={videoPlayer} url={url} ref={refMovie} width='50vw' light={1} controls={0} />
I also used light={true} which resulted in the same behavior.
I import it like this:
import ReactPlayer from 'react-player';
Any help would be much appreciated since it looks unprofessional using it like this. Plus, if I do not use the light mode, it increases the CPU usage in the web page causing laggy UX.
The text was updated successfully, but these errors were encountered: