Friday, November 16, 2018

Make an embedded video play automatically

Make an embedded video play automatically

Embed a video

  1. On a computer, go to the YouTube video you want to embed.
  2. Under the video, click SHARE Share.
  3. Click Embed.
  4. From the box that appears, copy the HTML code.
  5. Paste the code into your blog or website HTML.
Make an embedded video play automatically
To make an embedded video autoplay, add "&autoplay=1" to the video’s embed code right after the video ID (the series of letters that follows "embed/").
Embedded videos that are autoplayed don't increment video views.
Example:
<iframe width="560" height="315"
src="https://www.youtube.com/embed/D6Ac5JpCHmI?&autoplay=1"frameborder="0" 
allowfullscreen></iframe>

2 comments: