How to Embed YouTube Video Without Related Videos

zhenshen

Вселенское Зло
There are times when you don’t want related videos playing in a YouTube video embed. I know, because a few minutes ago I had that very need!
It’s actually quite simple to embed a YouTube video by way of their on-site forms these days – and they’re bound to change the options by the time I post this how to article. The good news is: if you’re having problems trying to get your YouTube video to embed without displaying any related links, please leave a comment below and I’ll be sure to respond with updated directions (and update this description, too).
Don’t worry – if you’ve already embedded the video, you can very easily turn off the related videos from showing up. This might be important if you only want a page’s visitor to see that single video. Take a look at the HTML code you copied from YouTube originally.
So, in essence, you’ll want the end of the video to look like this screen shot – giving the viewer no other option other than to replay without seeing related videos (from you or any other YouTube viewers):

You’ll see a couple of “youtube” URLs in there – the links which tell the web page which video needs to be played. To the end of these URLs, we need to add a simple parameter:
&rel=0
So, for example, if you see a URL like this:
http://www.youtube.com/v/X1Wn-iKadvE?version=3&hl=en_US
And turn it into this:
http://www.youtube.com/v/X1Wn-iKadvE?version=3&hl=en_US&rel=0
This way, when someone goes to view the video, no related videos will show up. You can see a living example of this code in action on our current business services site. You could also click on the YouTube links above to see the differences between viewing a video with or without the related video option.
Good luck with your embedding. If you have any questions about YouTube, don’t hesitate to ask!
 
Thread starter Similar threads Forum Replies Date
R Общение 2

Similar threads


Сверху