question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Light Mode Shows No Preview Image

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
cookpetecommented, Jan 19, 2021

The URLs work on noembed’s demo.

Interesting. Is there a console error (or network error) when your app makes the request to noembed?

Do you think there is another way that would make the use of light mode possible without losing that amount of time for each video link.

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.

1reaction
cookpetecommented, Jan 19, 2021

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

<ReactPlayer url={url} light='https://example.com/thumbnail.jpg' />
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found