Share this article
Improve this guide
2 Easy Ways to Autoplay Embedded YouTube Videos
Learn how to embed Youtube videos on your website or blog
2 min. read
Updated onOctober 4, 2023
updated onOctober 4, 2023
Share this article
Improve this guide
Read our disclosure page to find out how can you help Windows Report sustain the editorial teamRead more
Key notes
If you can edit and add HTML codes to your website or post, you can also embed YouTube videos to make your article informative. Embedding YouTube videos is simple; however, what if you want to enable autoplay for embedded YouTube videos?
Autoplaying embedded videos is useful if you want to show your products and how they work. While the embedded videos do not increase the views, they can be handy when used cautiously.
In this article, we show you how to enable autoplay for embedded YouTube videos on your website with ease.
How to autoplay embedded YouTube videos on your website?
1. Use HTML script
-
Open YouTube on your preferred web browser.
-
Find and play the video that you want to embed.
-
Below the video’s title, click onShare.
-
Select theEmbedtab. This will show you an HTML embed script.
-
Copy the HTML code and paste it into the page where you want to add the video.
-
For example, inWordPress, go toNew Post > Text(by default Visual tab is selected) and paste the code.
-
Add?autoplay=1code right after video ID.
8.After adding?Autoplay=1,the HTML code will look like this:“<iframe width=”560″ height=”315″ src=” https://www.youtube.com/embed/[Video ID]I?&autoplay=1″ frameborder=”0″ allowfullscreen>
-
Update the page before existing the page to save the changes.
-
Open the web page and check if the video plays automatically for the new users.
-
If the changes are not visible, try to clear the cache and try again.
The first method you can apply to autoplay Youtube videos on a website is by using an HTML script on it. Basically, you need to embed the Youtube video’s HTML code on your website.
2. Use the YouTube Embed plugin
The YouTube Embed plugin also comes with some advanced features. You can change the video player size, make them responsive, enable or disable annotations, allow captions, show related videos from other channels, and change the default style.
Note –This is a WordPress plugin. If you are using any other CMS (Content Management System), search the plugin repository of your CMS to find an alternative to the YouTube Embed plugin.
Before you proceed with the steps, note that auto-playing videos without user input can annoy the visitors and force them to close the site.
Adding an autoplay tag to the HTML code provided byYouTubeis the easiest way to autoplay embedded YouTube videos on your page. However, if you want more customization, you can use the YouTube Embed WordPress plugin.
Do let us know your preference in the comments below. Also, leave there any other questions or suggestions that you may have.
RELATED STORIES YOU MAY LIKE:
More about the topics:YouTube
Tashreef Shareef
Tashreef Shareef is a software developer turned tech writer. He discovered his interest in technology after reading a tech magazine accidentally. Now he writes about everything tech from Windows to iOS and streaming services to IoT at WindowsReport.
User forum
0 messages
Sort by:LatestOldestMost Votes
Comment*
Name*
Email*
Commenting as.Not you?
Save information for future comments
Comment
Δ
Tashreef Shareef