Yesterday I posted on my newfound knowledge about how to specify the starting and ending points in an embedded YouTube video. I was pretty excited to be able to play just a 40-second segment of video from the middle of a full-length documentary.
But then I noticed that when my video clip ended, I got the screen array full of other videos that you sometimes get when you play clips on YouTube. I didn’t want that distraction. Plus, even if these particular related videos were “clean,” I’ve noticed that sometimes such “related” videos preview images I’d rather not have on my blog. (And I can’t imagine how they are related to what I just watched!)
Anyway, I did a little more digging and experimenting, and I figured out how to disable that screen from displaying those related videos.
Here’s the code from yesterday’s post that allowed me to embed the YouTube video with specified “start” and “stop” times:
Here’s the result of that coded instruction displayed in the form of my video clip. If you want to see the start/stop and related videos, you have to sit tight and just let the 41 seconds play. Trying to speed things up by dragging the little slider button (don’t know what it’s called 🙂 ) seems to disable the start/stop parameters.
To disable the related videos from appearing at the end, simply add &rel=0 to that long string of code. (That’s a ZERO on the end, not a lower-case letter “o.”) So the code would look like this:
And here is the result. (Again, you need to sit tight and let the video play out until the end.) Cool, right?
UPDATE: I’ve noticed that WordPress has changed the way it embeds video from YouTube. Unlike before, now when you paste in the URL for a YouTube video, WordPress immediately and automatically changes the line of code (URL) to show the actual video itself in your post draft, the way it would appear in your published version. Because the line of code is then no longer visible, it’s impossible to add the &rel=0 addition.
To fix this problem, switch the view of your draft post from “Visual” to “Text.” As you are writing your post, look up at your tool bar (with your “bold” and “italics” symbols, etc.) and then look over all the way to the right side of the white box that your text is written inside of. See the two tabs there on the upper right? Click on the “Text” tab and instead of the video image, you’ll see the actual URL. Add your &rel=0 there at the end of that.