react-player
react-player copied to clipboard
Custom preview prevents React Player to play the video
- Set light={<img src=... />} o any JSX component
- React Player shows the custom preview as expected
- Click on the preview
- React Player replace preview with video tag
- After about 1 second (or less sometimes) React Player wrongly replace video tag with the preview image
thanks for the feedback, could you please provide a repro?
<ReactPlayer src="metadata.mpd" light={<img src="image.jpg" />} />
Tested with a Dash stream and some React Components (as light prop):
- <img src="image.jpg" />
- <span>Test</span>
Every Component trigger that error, if i use light="image.jpg" no errors (but background-image does not work on some devices like iPhones)