gpt4 book ai didi

youtube-api - 如何从 YouTube 中删除 "More videos"功能

转载 作者:行者123 更新时间:2023-12-02 03:24:24 25 4
gpt4 key购买 nike

当嵌入视频暂停时,YouTube 会显示一个包含视频建议的菜单(“更多视频”)。 iframe 中的元素具有“ytp-pause-overlay”类。每次用户暂停时都会显示它,除非最小化一次。

screenshot of more videos menu in embedded videos

如果可能[卫报和Udacity做到了],如何将其删除?如果没有,是否可以默认显示最小化(“ytp-scroll-min”)?

“更多视频”功能会影响字幕和键盘控制,在教育或企业环境中,这是不可取的。

正如预期的那样,以下建议参数均无用:

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

如果 Google 工程师团队中的任何人能够提供帮助,我将不胜感激。

提前谢谢您。

最佳答案

根据您尝试过的内容 rel参数,

The behavior for the rel parameter is changing on or after September25, 2018. The effect of the change is that you will not be able todisable related videos. However, you will have the option ofspecifying that the related videos shown in the player should be fromthe same channel as the video that was just played.

To be more specific:

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

Youtube 的嵌入 api 不再允许您禁用它。在github中检查同样的问题.

关于youtube-api - 如何从 YouTube 中删除 "More videos"功能,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53830018/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com