How To Disable Related Videos On Embedded YouTube Player

3 Comments

When you take the code youtube gives you to embed video on your webpage or website, at the end of the video related videos will be shown. This means it's more likely people will leave your website. To disable related videos on embedded youtube videos you just need to make two changes to the embed code:

In your embed code there will be two references to your video URL, like this:

http://www.youtube.com/v/DMxNkrwajN8

Append the following at the end of this link:

&rel=0

So working with the above example the link to our video in our object embed code would become:

http://www.youtube.com/v/DMxNkrwajN8&rel=0

When you make the above changes to the embed code and view your video, no related videos will be shown.

Easy peazy.

Post Sponsored By ...

Sponsored Links

3 Comments Add Your Own Comment

  1. 2009 March 23

    hey dud, how do i desable the option of related videos.
    seems to not work in some of them.

  2. 2009 May 22

    Hey Alan,

    Nice blog with some tasty stuff!

    Love this tip and just FYI, I built a little tool that let’s you disable all the annoying YouTube stuff when you embed. It’s at:

    http://screencastprofits.com/youtube

    Keep ‘em grinnin’!

    Lon Naylor

Add Your Own Comment Fields marked * are required.

Note: You can use basic XHTML in your comments. Your email address will never be published.

Subscribe to this comment feed via RSS