Support > FAQ > BannerOS > View Tutorial

Automatically Play Embedded YouTube Videos

To autoplay a YouTube video that has been embedded on your website, just add the autoplay parameter to the embed code's "src" attribute immediately following the video ID, as shown in the following example. The autoplay parameter is: autoplay=1.

<iframe width="560" height="315" src="https://www.youtube.com/embed/t7-3GCXsguo?autoplay=1" frameborder="0" allowfullscreen></iframe>

Note that the first parameter you add after the video ID should start with a question mark, and any subsequent parameters should be separated by an ampersand (&). For example, if you use the parameter that hides related videos that normally appear after the embedded video is finished playing (rel=0), the embed code should look like this:

<iframe width="560" height="315" src="https://www.youtube.com/embed/t7-3GCXsguo?rel=0&autoplay=1" frameborder="0" allowfullscreen></iframe>


+