insin / astro-lazy-youtube-embed

Embed YouTube videos with a static placeholder which only embeds when you click

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Autoplay not working

MrAmericanMike opened this issue · comments

I understand that been lazy loading autoplay by default may not work as the embed is waiting for the user to click the thumbnail for it to actually load the video embed, however and even having autoplay set to 1, you have to click a second time for the video to start playing.

It's an annoying behavior, is it possible to get around this?

<YouTube embedParams={{ autoplay: 1 }} thumbnailRes="maxres" title="Nature" videoId="0Nu8R2CwvrA" />