YouTube makes it easy to embed videos on your website. By modifying the video’s parameters, you can control a variety of the embedded video’s settings, including enabling the autoplay feature to have the video start playing automatically as soon as a user lands on the page.

YouTube Embed Video - 1

YouTube Embed Video

This guide will walk you through the process of setting a YouTube video to autoplay when it is embedded on a website. Importantly, using the autoplay feature for embedded videos does not contribute to the video’s view count.

  1. Visit the YouTube video you want to embed on your site.
  2. Below the video, click on the Share button. Opening the YouTube Video Share Dialog Box
  3. Select the Embed feature. Navigating to Embed
  4. Copy the provided HTML code and paste it into your website’s code editor.
  5. Add the autoplay parameter to the src attribute in the video embed code.
  6. Locate the video ID within the code, and append the ?autoplay=1 parameter following it.
  7. Here is a comparison example for clarity: Before: After:
  8. If the embed code already includes a URL parameter—indicated by the ? symbol immediately following the video ID—you should use the & sign to append additional parameters. For example: Before : After :

With this simple adjustment, you have the ability to decide if an embedded video should start playing automatically.

How to Fix “Printer is in an error state” Issue?