如何从YouTube嵌入中删除暂停菜单视频建议/相关视频(类:ytp-pause-overlay) [英] How to remove pause menu video suggestions / related videos (class: ytp-pause-overlay) from Youtube embed
本文介绍了如何从YouTube嵌入中删除暂停菜单视频建议/相关视频(类:ytp-pause-overlay)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我的嵌入式视频暂停时,Youtube正在显示一个带有视频建议的菜单. iframe中的元素具有"ytp-pause-overlay"类
Youtube is showing a menu with video suggestions while my embedded video is paused. The element in the iframe has the class 'ytp-pause-overlay'
如何在不删除控件的情况下将其删除?
How can you remove it without removing controls?
推荐答案
是可以的.您必须在iframe
代码中使用showinfo=0?ecver=2
.
Yes it is possible. You have to use showinfo=0?ecver=2
in your iframe
code.
示例:
<iframe src="https://www.youtube.com/embed/pV1jC37ELmQ?rel=0&showinfo=0?ecver=2" width="640" height="360"></iframe>
这篇关于如何从YouTube嵌入中删除暂停菜单视频建议/相关视频(类:ytp-pause-overlay)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文