react-youtube icon indicating copy to clipboard operation
react-youtube copied to clipboard

video doesn't show occasionally

Open mattwoodage opened this issue 4 years ago • 1 comments

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?

mattwoodage avatar Feb 10 '21 12:02 mattwoodage

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, // }, };

tejas-dolphin avatar Sep 17 '21 11:09 tejas-dolphin