18 Mar 2010

YouTube Embed Code Options–Have it Autoplay

How to YouTube, Ninja Tricks 2 Comments

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!

Related-Videos

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=”http://www.youtube.com/v/EBM854BTGL0&autoplay=1″></param><param name=”wmode” value=”transparent”></param><embed src=”http://www.youtube.com/v/EBM854BTGL0&rel=1&border=0″ type=”application/x-shockwave-flash” wmode=”transparent”width=”425″ height=”344″></embed></object>

Code to Autoplay a YouTube Movie:

<embed src=”http://www.youtube.com/v/EBM854BTGL0&autoplay=1″ 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=”http://www.youtube.com/v/EBM854BTGL0&rel=0&border=0″ 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=”http://www.youtube.com/v/EBM854BTGL0&autoplay=1&rel=0″ 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.

Enjoy.

Meet The Author

Jarrett Gucci also know as Mr. Internet Tips 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 300 WordPress websites. Jarrett Gucci believes strongly in creating websites that are unique, functional and generate referrals.

Facebook Twitter LinkedIn YouTube 

Did you enjoy this article?
"Subscribe & Get my FREE Ultimate YouTube User Guide & Secrets"
Subscribe to our Blog and get an instant download to the Ultimate YouTube Guide & Secrets complete with special tips and tricks to make your videos more visible online.



Post comment as twitter logo facebook logo
Sort: Newest | Oldest

hi there super little web site ya got right here ;) I operate the same web theme on my own blog yet unfortunately for whatever nutty reason why it would seem to stream more efficiently on this site eventhough the one you have is carrying a good deal more material. Are you applying any specific plugins or widgets which quicken it up? If you could display the widgets so I can use them on my website so twilight eclipse followers could watch twilight breaking dawn online trailers and videos more easily I'd always be grateful - thank you ahead of time :)

Shoot us an email at info@dynastywebsolutions.com for details.

Facebook

Twitter

YouTube