How to Autoplay Embedded YouTube Videos on your page

You can have an embedded video from YouTube on your website play automatically when a visitor gets on your page by just adding a simple parameter to the embedded URL. This is very useful for pages such as “How it Works” or “About Us”, where the user expects to see some rich content.

Embedded videos which have autoplay enabled will not increase the number of views. Also, be careful when deciding where to autoplay your videos. Auto Played videos sometimes tend to distract and annoy the user and end up causing more harm than good.

Enabling Autoplay Embedded YouTube Videos

Here’s how to autoplay an embedded YouTube video. You require very basic code editing skills for this.

  1. Go to YouTube and open the video you want to embed.
  2. Click on Share and then select the Embed
  3. Copy the HTML code from the box and paste it into the page into the HTML code you would like to add the video to.
  4. Add ?autoplay=1 right after the video ID. That is, if the embedded URL was:“<iframe width=”560″ height=”315″ src=”[Video ID]” frameborder=”0″ allowfullscreen></iframe>”, adding ?autoplay=1 should look like“<iframe width=”560″ height=”315″ src=”[Video ID]I?&autoplay=1″ frameborder=”0″ allowfullscreen></iframe>
  5. Update or Save your changes before exiting and then refresh the page to test if the video indeed plays automatically.

Kevin Arrows

Kevin Arrows is a highly experienced and knowledgeable technology specialist with over a decade of industry experience. He holds a Microsoft Certified Technology Specialist (MCTS) certification and has a deep passion for staying up-to-date on the latest tech developments. Kevin has written extensively on a wide range of tech-related topics, showcasing his expertise and knowledge in areas such as software development, cybersecurity, and cloud computing. His contributions to the tech field have been widely recognized and respected by his peers, and he is highly regarded for his ability to explain complex technical concepts in a clear and concise manner.
Back to top button