Disable YouTube logo on embeded video

拜拜、爱过 提交于 2019-12-30 11:37:07

问题


I embeded a youtube video via iframe but &modestbranding=1 does not work if &controls is set to 0.

<iframe style="display: block; margin: auto;" width="560" height="315" src="https://www.youtube.com/embed/9dUdfY7op6M?modestbranding=1&controls=0&color=white&showinfo=0&disablekb=1&rel=0&autohide=1" frameborder="0" allowfullscreen></iframe>

I've tried assigning display: none; to .ytp-watermark class and i've tried to find class with JS and then x[0].style.display="none", but neither of them worked.

Is there any other way I can remove the logo?


回答1:


If you are using showinfo=0 to remove the title from the top of the embedded

video, modestbranding=1 will not work, and the logo will appear.

<iframe style="display: block; margin: auto;" width="560" height="315" src="https://www.youtube.com/embed/9dUdfY7op6M" modestbranding=1 frameborder="0" allowfullscreen></iframe>


来源:https://stackoverflow.com/questions/46941324/disable-youtube-logo-on-embeded-video

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