COS-Pages-Editor

How do I get my YouTube video to autoplay when my page loads?

Last updated: October 6, 2015

  • Grab the embed code from the YouTube video to be added to your page:

<iframe width="560" height="315" src="http://www.youtube.com/embed/evL5jaZx8vk" frameborder="0" allowfullscreen></iframe>

  • Add "?rel=0&autoplay=1" after the URL in the embed code src:

<iframe width="560" height="315" src="http://www.youtube.com/embed/evL5jaZx8vk?rel=0&autoplay=1" frameborder="0" allowfullscreen></iframe>

Was this article helpful?