DEV Community

Discussion on: Custom YouTube thumbnail and play button for embedded iframe video

Collapse
 
fabiofernandes6 profile image
Fabio Fernandes

Thanks, this is really helpful! Have you found a way to automatically play the video once the user clicks the thumbnail? Currently it loads the iframe but it doesn't play the video. Thanks!!!!

Collapse
 
fabiofernandes6 profile image
Fabio Fernandes

In case someone wants to know this:
Some people attach autoplay=1, but you also need to attach mute=1 to make it autoplay. That works, but with no sound (of course). It seems like the browsers made sure we can't play the video automatically without muting them. Which makes sense for limiting the bad guys, but it also affects us the good guys :/