Online Forum To Support Coders With Technical Assistance - Read Write Execute

YouTube embed video auto-play not working

Ankit Agrawal
Ankit Agrawal
Published on October 18, 2019 · 1 min read

Google auto play polices has been changed that’s why since April 2018 it’s not working.Now we have to add &mute=1 to YouTube URL.

<iframe src="https://www.youtube.com/embed/videoid?autoplay=1&mute=1" 
allowfullscreen="" width="560" height="315">
</iframe>

 

Was this article helpful?
Ankit Agrawal

Ankit Agrawal

Author & Senior Engineer at CodeExecute

Writing practical engineering guides, debugging real-world bottlenecks, and creating free tools for developer productivity.

← Previous Article How to install laravel via composer Next Article → What is post_max_size in php