YouTube Embed Code Options – Have it Autoplay

Here are some problems I face when embedding YouTube videos on my website.

First, the user has to click on the “play” button for the video to play. People who are new to online video might not even know to how to do that.

autoplay youtube

Second, at the end of the video, the “related videos” pop up taking your visitor to other sites. In other words, off your site!


So have you ever wanted your embedded YouTube video to automatically play (autoplay) when your page loads? How about turning off the “related video” feature at the end the video?

You’ve come to the right place. After much experimenting, here are all the YouTube embed code variations to get your video just the way you want it. Just replace the video URL with the video you want to embed:

Default YouTube Embed Code:
<object width=”425″ height=”355″><param name=”movie” value=”″></param><param name=”wmode” value=”transparent”></param><embed src=”″ type=”application/x-shockwave-flash” wmode=”transparent”width=”425″ height=”344″></embed></object>

Code to Autoplay a YouTube Movie:

<embed src=”″ type=”application/x-shockwave-flash” wmode=”transparent” width=”425″ height=”344″></embed>

Code to turn off RELATED MOVIES at the end of the movie
<embed src=”″ width=”425″ height=”344″ type=”application/x-shockwave-flash” wmode=”transparent”></embed>

Code to Autoplay YouTube Movie AND turn OFF related movies at the end of the movie:
<embed src=”″ type=”application/x-shockwave-flash” wmode=”transparent” width=”425″ height=”344″></embed>

Want to see what it looks like? Click on the image below to see a live example of the codes in action.

Picture 4
Click on this link to get the codes and view the live example.


Previous What the @$#@ happen to Godaddy?
Next Add You Own Custom Share Image for Each Page or Post - Wordpress Plugin

About author

Jarrett Gucci
Jarrett Gucci 289 posts

Jarrett Gucci is the owner of Dynasty Web Solutions. A full service Internet presence provider specializing in WordPress development for business owners. Jarrett Gucci along with his team of professionals have designed over 400 WordPress websites. Jarrett Gucci believes strongly in creating websites that are unique, functional and generate referrals.

You might also like

WordPress Resources 0 Comments

Stream Your YouTube Channel On A Page Inside Your WordPress Website

ContentsCOPY CODE BELOWCOPY CODE BELOWOther Plugin That Will Do This: WordPress shortcodes are great. They let you perform complex operations or display dynamic content with just a tiny bit of

Ninja Tricks 0 Comments

Custom Facebook LIKE Box | Customize Facebook LIKE Box Using CSS

The Facebook Like box placed on your website /blog is probably the easiest way to attract new fans to your Facebook page. And the same rectangular box can even help

Ninja Tricks 0 Comments

Create a WordPress Menu With Images – No Plugin Needed

ContentsTake your menu look from this:To this:Step #1 – Create a MenuStep #2 – Create HTML codeStep #3 – Create a Menu ItemStep #4 – Adjust Menu ItemStep #5 –

How to YouTube 1Comments

Change the YouTube Embed Image to Custom Image

ContentsBefore:After:Here is the exact code from above example.That’s it! If you want a specific preview image for your YouTube video, you’re pretty much out of luck. When you upload a


No Comments Yet!

You can be first to comment this post!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.