gpt4 book ai didi

javascript - 如何禁用 YouTube 的外部链接

转载 作者:行者123 更新时间:2023-11-28 05:36:14 24 4
gpt4 key购买 nike

我想为 child 制作一款作为 YouTube 播放器的 Kindle Fire 应用。如果可能的话,我计划用 PHP/HTML/JavaScript 编写它。但是,由于它是针对 child 的,因此我不希望视频能够打开外部链接,即使点击广告也是如此。我对广告本身没有问题,只是当点击它们时,它们会在浏览器窗口或类似的窗口中打开,而且我不希望 children 打开随机的浏览器窗口。是否可以阻止这种行为?我需要编写一个自定义播放器吗?

最佳答案

在 TOS 中禁止您想做的事情的条目:

II. Prohibitions

Your API Client will not, and You will not encourage or create functionality for Your users or other third parties to:

  1. modify, replace, interfere with or block advertisements placed byYouTube in the YouTube Data, YouTube audiovisual content, or theYouTube player;

https://developers.google.com/youtube/terms

如果您确实想要无广告,您可以鼓励家长购买 YouTube Red 以获得 YouTube 无广告服务,但我不确定 Red 如何与外部播放器配合使用。

关于javascript - 如何禁用 YouTube 的外部链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39335886/

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