我如何删除手表以后和分享按钮从youtube iframe嵌入播放器。使用以下嵌入代码嵌入视频剪辑。我使用此参数,但仍不起作用
“显示信息=0”和“控件=0”
1cosmwyk1#
您可以使用no cookie版本的视频,禁用“稍后观看”和“共享”按钮。如果嵌入代码如下所示:<iframe width="560" height="315" src="https://www.youtube.com/embed/HJtJXMKpl2g" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>您必须将其更改为:<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/HJtJXMKpl2g" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>或者在youtube嵌入窗口中选中复选框。这样,您的URL看起来会略有不同:https://www.youtube.com/embed/HJtJXMKpl2g改为https://www.youtube-nocookie.com/embed/HJtJXMKpl2g并且“稍后观看”和“共享”按钮将被自动隐藏。
no cookie
<iframe width="560" height="315" src="https://www.youtube.com/embed/HJtJXMKpl2g" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/HJtJXMKpl2g" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
https://www.youtube.com/embed/HJtJXMKpl2g
https://www.youtube-nocookie.com/embed/HJtJXMKpl2g
1条答案
按热度按时间1cosmwyk1#
您可以使用
no cookie
版本的视频,禁用“稍后观看”和“共享”按钮。如果嵌入代码如下所示:
<iframe width="560" height="315" src="https://www.youtube.com/embed/HJtJXMKpl2g" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
您必须将其更改为:
<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/HJtJXMKpl2g" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
或者在youtube嵌入窗口中选中复选框。
这样,您的URL看起来会略有不同:
https://www.youtube.com/embed/HJtJXMKpl2g
改为
https://www.youtube-nocookie.com/embed/HJtJXMKpl2g
并且“稍后观看”和“共享”按钮将被自动隐藏。