Skip to main content

Limit related videos on embedded videos to those from the same channel

If you embed videos on your website or blog, and get the embed code from the video watch page, you may have noticed that YouTube no longer lets you choose to disable related videos from displaying at the end of the video.

YouTube has updated the embedded video player so you can't completely turn off related videos and you can't disable the video title or channel avatar from displaying. You can, however, limit the related videos that display to videos on the same channel.

This change was announced in the YouTube Developer documentation in August, but it was pretty much unnoticed until its implementation now.


The good news is that you can use the "rel" parameter to limit the related videos shown to those on the same channel as the embedded video. So if you watch one of my videos embedded on my site, I can set it so that the related videos you are shown are all mine too.

How to use the "rel" parameter to limit related videos to videos on the same YouTube channel

As this option is no longer available when you get the embed code from a video watch page, you will need to manually add ?rel=0 to the end of the video URL.

Here is the standard embed code for one of my videos, with the video URL in blue:

<iframe width="560" height="315" src="https://www.youtube.com/embed/QbWic6iIVqw" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>

Add the ?rel=0 parameter to limit related videos to videos from my channel:

<iframe width="560" height="315" src="https://www.youtube.com/embed/QbWic6iIVqw?rel=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>

Make sure there is no space between the video URL and the ?rel=0

It appears that if there aren't enough related videos from the same channel to fill the related video slots, no related videos display. 

The YouTube Help Center has more information about "privacy enhanced mode" and how to use other parameters to make the embedded video play automatically, start an embedded video video at a specific time, or turn on captions.

Note that there has also been a change in the embedded video player itself, so that you can't disable the video title or channel avatar:
Following the change, the channel avatar and video title will always display before playback begins, when playback is paused, and when playback ends. The avatar being displayed is new behavior that will be consistent across all embedded players.
And you can get up-to-date details about all the available video embed player parameters in the YouTube iFrame Player API documentation.

Comments