我需要嵌入没有 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 中找到它。
谢谢!!!
最佳答案
不幸的是,showinfo
和 modestbranding
是互斥的。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
- docsSupported 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/