react-youtube
react-youtube copied to clipboard
video doesn't show occasionally
Reload a page with a video embed on 20 times and a couple of times the video will not appear The iframe exists in the page and has the same shape as the video but its body has no content so it's blank. No video element. The iframe tag has a data-src attribute. The stage that changes data-src to src has not happened.
Anyone experienced this or found a solution please?
I was facing the same issue,by removing playerVars in opts function it now works properly
const opts = { height: "390", width: "640", // playerVars: { // autoplay: 1, // }, };