How to remove “More videos” feature from Youtube

我只是一个虾纸丫 提交于 2020-08-05 07:12:27

问题


YouTube displays a menu with video suggestions ("More videos") when an embedded video is paused. The element in the iframe has the class "ytp-pause-overlay". It is displayed every time the user pauses, unless it is minimized once.

screenshot of more videos menu in embedded videos

If possible [The Guardian and Udacity did it], how can it be removed? If not, is it possible to display it minimized by default ("ytp-scroll-min")?

"More videos" feature affects subtitles and keyboard controls and, in educational or corporate contexts, it is not desirable.

As expected, none of the following suggested parameters has been useful:

  • rel=0
  • ytp-pause-overlay=0
  • ecver=2

I would be utterly grateful if anyone in Google engineers team could help.

Thank you in advance.


回答1:


Based from what you have tried about rel parameter,

The behavior for the rel parameter is changing on or after September 25, 2018. The effect of the change is that you will not be able to disable related videos. However, you will have the option of specifying that the related videos shown in the player should be from the same channel as the video that was just played.

To be more specific:

  • Prior to the change, if the parameter's value is set to 0, then the player does not show related videos.
  • After the change, if the rel parameter is set to 0, the player will show related videos that are from the same channel as the video that was just played.

Youtube's embed api no longer lets you disable it. Check this same issue in github.



来源:https://stackoverflow.com/questions/53830018/how-to-remove-more-videos-feature-from-youtube

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!