乐闻世界logo
搜索文章和话题

How to disable "related videos" from an embedded youtube playlist

1个答案

1

YouTube previously allowed users to disable related videos after playback by adding parameters to the video URL. However, starting in 2018, YouTube changed its policy and no longer supports completely disabling related videos that appear after playback. But there is another method to restrict related videos to only show other videos from the same channel, rather than videos from other channels.

Specific steps to follow:

  1. Obtain the embedded code for a YouTube video or playlist.
  2. Add the parameter rel=0 to the video URL. This does not disable related videos but restricts YouTube to displaying only videos from the same channel as related content after the video finishes.

For example, suppose you have an embedded code for a YouTube playlist as follows:

html
<iframe width="560" height="315" src="https://www.youtube.com/embed/videoseries?list=PLBCF2DAC6FFB574DE" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

To modify this code to restrict related videos to only show content from the same channel, do the following:

html
<iframe width="560" height="315" src="https://www.youtube.com/embed/videoseries?list=PLBCF2DAC6FFB574DE&rel=0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

The key is adding the URL parameter &rel=0. While this method does not completely disable related videos, it at least controls the scope of displayed content, which can help keep viewers engaged with your channel's content.

2024年8月13日 11:11 回复

你的答案