If you are looking for YouTube’s Autoplay option, Google relocated this option recently to its own YouTube player.
The Autoplay YouTube button relocation is a welcomed update as it makes YouTube’s graphical user interface much sleeker.
Autoplay YouTube Videos
For Android and Apple’s iOS devices, we can locate the YouTube autoplay button on top of the video window. From there, we can toggle autoplay on or off.
On Microsoft devices running the Google Chrome web browser or on Chromebooks, we can find the autoplay YouTube button at the player’s bottom, as shown below.
Embed YouTube Videos
If you are someone that is looking to embed YouTube videos on your website or elsewhere, please continue reading.
Google makes it easy to embed a YouTube video by providing the HTML code required when you click the share button as shown below.
Once you click share, on the upcoming screen you can choose the embed option as shown below.
As shown below, you will be able to copy the embed code that YouTube provides and paste it into wherever HTML codes can be inserted including your websites, blogs, etc.
Autoplay Embedded YouTube Videos
Now you are most likely here because you want to alter the code to autoplay YouTube videos on a blog or a website. You can do this easily by copying the code we’ve provided below. You can edit our code to insert your own YouTube URL (address).
You can highlight to copy the entire code below or you can simply click on the copy button at the end of the URL box.
<iframe src=”https://www.youtube.com/embed/vNmSp4QLcxs?rel=0;&autoplay=1&mute=1&loop=1&playlist=iG9CE55wbtY”frameborder=” width=”560″ height=”315″ allowfullscreen=”allowfullscreen”><span data-mce-type=”bookmark” style=”display: inline-block; width: 0px; overflow: hidden; line-height: 0;” class=”mce_SELRES_start”></span></iframe>
Once copied, paste it into your favorite editor to alter it. Windows notepad is what we often use but you can use any editor available to you.
Autoplay YouTube On Your Website
We will now look at the embed code to alter in order to autoplay YouTube on your page.
Your copied code should look the same as below. The highlighted part of the code is what we need to replace.
A link to your favorite YouTube video will be formatted as shown below. We will only need the highlighted part of the link to insert into our autoplay code.
Once the YouTube autoplay code is altered, you can copy the entire code and paste it into the HTML editor of your website.
For WordPress blogs, be sure to paste it in the “Text” part of your article and not the visual editor.
YouTube’s Advanced Parameters for Embedded Videos
You can change many of the parameters for our embedded video code above as Indicated below. You can also mute your YouTube autoplay videos.
autoplay=1 (0 to disable)
mute=“1” (mutes autoplay video)
If you are interested in checking out even more customizations for embedded YouTube videos, here is a great resource from Google.
Vimeo Embedded Autoplay Videos
The autoplay code we listed on this page will not work for other platforms like Vimeo. If you are interested, here is a Vimeo autoplay embedded code that you can use. Be sure to replace the Vimeo URL (address) with your own.
<iframe src=”https://player.vimeo.com/video/430690235?autoplay=1″ width=”640″ height=”360″ frameborder=”0″ allow=”autoplay; fullscreen; picture-in-picture” allowfullscreen></iframe> <p><a href=”https://vimeo.com/430690235″>A Mind Sang</a> from <a href=”https://vimeo.com/viernev”>Vier Nev</a> on <a href=”https://vimeo.com”>Vimeo</a>.</p>
Also, Vimeo makes it easy to generate an autoplay embedded code right on their website as shown below.
Under the desired video that you would like to embed, Go to Share > Show Options
Put a checkmark on the autoplay options & other settings as shown and then copy the entire embed code.
If you’ve found this information helpful, please be sure to share it on social media. You can follow us on Facebook, Twitter, or Pinterest.