modestbranding not working for YouTube embed

随声附和 提交于 2019-12-12 12:26:51

问题


I'm trying to hide the YouTube logo that appears in the bottom right had corner of an embed. For some reason modestbranding=1 is not working:

<iframe class="gtms-intro" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;" width="1280" height="720" src="https://www.youtube.com/embed/ywFGJecodxQ?rel=0&amp;controls=0&amp;showinfo=0&amp;autoplay=1&amp;loop=1&amp;modestbranding=1&amp;playlist=ywFGJecodxQ" frameborder="0"></iframe>

回答1:


Problem is with how you added the parameters. Inside the link you are supposed to add parameters like so:

"http://www.myLink.com?first_param=1&second_param=0&third_param=3"

No amp; in between. As a result, your iFrame is supposed to look like this:

<iframe class="gtms-intro" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;" width="1280" height="720" src="https://www.youtube.com/embed/ywFGJecodxQ?rel=0&controls=0&showinfo=0&autoplay=1&loop=1&modestbranding=1&playlist=ywFGJecodxQ" frameborder="0"></iframe>

Hope it helped.




回答2:


Combination of controls=0 and modestbranding=1 also gives a big YouTube logo at the right bottom corner. showinfo does nothing anymore since September 2018.




回答3:


If you have showinfo=0 at the same time as modestbranding=1 the YouTube logo will show even more prominent.

My conclusion is that there is no way to remove all links to youtube so you have to pick one.

These images show the visual when playing.

showinfo=0&modestbranding=0

showinfo=0&modestbranding=1

showinfo=1&modestbranding=1




回答4:


I just noticed modestbranding stopped working for me when I added color=white but when I turned it to color=red the YT logo disappeared. Hope it helps someone with a similar issue.



来源:https://stackoverflow.com/questions/40353582/modestbranding-not-working-for-youtube-embed

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