When you have watched a great video on Youtube, you might want to share it on your blog/website so that your friends can enjoy it. Then, you will get code and embed the video on your web. However, people must click play button to watch it. Have away to make the Youtube video auto play when people visit your webpage.
- Open the Youtube video you want to share, click Share button. Click Embed to see the share code.
- Don't copy the show code. Click Show more to see more options. You will see Use old embed code option. Check it. Then you can copy the shown code.
- Now go to the webpage where you want to embed the video on. Paste the copied code into webpage editor.
- Finally, add &autoplay=1 into the code as below:
<object width="560" height="315"><param name="movie" value="//www.youtube.com/v/JZBAymdfKvo?version=3&autoplay=1&hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="//www.youtube.com/v/JZBAymdfKvo?version=3&autoplay=1&hl=en_US" type="application/x-shockwave-flash" width="560" height="315" allowscriptaccess="always" allowfullscreen="true"></embed></object>
That's all. Wish succeed!
Example auto play Youtube video:
Comments
Post a Comment