Light Mode Shows No Preview Image
See original GitHub issuereact-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.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
File Icon Preview Thumbnails Not Showing in macOS Finder ...
This function can be turned on and off in Finder -> View -> Show View Options by checking the box next to Show...
Read more >How to Fix Thumbnail Previews Not Showing in Windows 11 ...
How to Fix Thumbnail Previews Not Showing in Windows 11/10 Explorer · 1. Right-click any file in the file format and point to...
Read more >Windows 10 photo thumbnail preview not working
Open This PC on Taskbar. · Click or Tap on Pictures folder. · Click on View. · Click or tap on Options and...
Read more >Re: Lighting effect preview is black and unrespons...
I am working on a portrait, and I am trying to add rendered lighting to it. For the life of me I can...
Read more >12 Ways to Fix Thumbnails Are Not Showing in Windows 10
If thumbnail previews not are showing in Windows 10, adjust your folder settings or try one of many available solutions from this guide....
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 Free
Top 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
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
light
and noembed isn’t working for you, there isn’t really any way to make use of light mode.This comment probably applies here: https://github.com/cookpete/react-player/issues/1130#issuecomment-760184940
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
light
prop. eg