javascript - 嵌入不带任何 Logo 或 youtube 链接的 youtube 视频

标签 javascript html video youtube blogs

我需要嵌入没有 Youtube Logo 和任何指向 Youtube 视频网站的链接的 Youtube 视频。

有三个选项:
- 谦虚品牌 = 1 删除 youtube Logo
-controls = 0 删除带有“在 youtube 中查看”链接的底部栏
- showinfo 0 0 删除带有“在 youtube 中查看”链接的上栏

如果我放其中一两个,可以,但用户仍然可以使用第三个选项访问 youtube。

如果我加入三个选项,会自动出现 Youtube 标志。

我使用这样的东西:

src="https://www.youtube.com/embed/videoID??modestbranding=1&showinfo=0&controls=0"

我该如何修复它或如何嵌入视频而无法在 youtube 中找到它。

谢谢!!!

最佳答案

不幸的是,showinfomodestbranding是互斥的。modestbranding - docs

This parameter lets you use a YouTube player that does not show a YouTube logo. Set the parameter value to 1 to prevent the YouTube logo from displaying in the control bar. Note that a small YouTube text label will still display in the upper-right corner of a paused video when the user's mouse pointer hovers over the player.


showinfo - docs

Supported values are 0 and 1.

Setting the parameter's value to 0 causes the player to not display information like the video title and uploader before the video starts playing.

关于javascript - 嵌入不带任何 Logo 或 youtube 链接的 youtube 视频,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40749180/

相关文章:

javascript - 谷歌单词树形图最后一个 child 逐渐消失

javascript - 如何使用指令动态更改模板?

javascript - 删除 JavaScript 中动态创建的行

html - 我如何将菜单按钮放在左侧?

javascript - 使用 Python 自动化 HTTP 导航和 HTML 打印

javascript - Node.js 中的视频流

video - CKEditor 4.1.1 的 Html 5 视频插件

javascript - Div标签代码提取器

javascript - 无需重新加载即可在选项卡之间切换

regex - 以编程方式,Youtube Content ID如何工作?