YouTube嵌入showinfo已被弃用 [英] YouTube embed showinfo has been deprecated

查看:161
本文介绍了YouTube嵌入showinfo已被弃用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在网站上将YouTube视频用作英雄横幅。



不过,几天前它开始显示标题,稍后观看按钮和共享按钮。如果有网址,我们最后可以使用& showinfo = 0 隐藏它们。



我发现了 showinfo 已弃用,并且因此,您将无法再隐藏该视频在那里显示的事实。



是否还有其他参数可以执行相同的操作?



您不能用 CSS JavaScript ,因为它是 iframe





更新:



任何层或遮罩视频上的视频无济于事,因为在加载视频时会显示信息,或者如果您在浏览器之外单击,视频也会暂停并显示信息。



隐藏最顶端的〜60px可行,但这对我来说不是一个好的解决方案。

解决方案

直接来自显示信息


注意:这是一个showinfo参数的弃用声明。此外,rel参数的行为正在更改。标题,频道信息和相关视频是YouTube核心用户体验的重要组成部分,这些更改有助于使YouTube在不同平台上的观看体验保持一致


rel参数的行为在2018年9月25日当天或之后发生更改。更改的结果是您将无法禁用相关视频。但是,您可以选择指定播放器中显示的相关视频应与刚刚播放的视频来自同一频道。


它明确指出,这是他们认为是cor youtube体验的一部分。没有建议您要发送以存档旧结果的解决方法或新参数。他们正在删除它。如果您尝试使用javascript和css强制退出,我几乎会建议您反对TOC,TOC指出您不允许更改该显示。人们应该知道您正在显示来自YouTube的内容


We are using a YouTube video on our website as a hero banner.

However few days ago it started showing it's title, watch later button and a share button. We were able to hide them using &showinfo=0 at the end if the URL.

I found out that showinfo has been deprecated and thus you can no longer hide the fact that it is a YouTube video showing there.

Is there any other parameter that might be able to do the same thing?

You cannot do it with CSS or JavaScript as it is an iframe.

Any ideas are much appreciated.

UPDATE:

Any layer or mask over the video doesn't help, as the info shows when the video is loading, or if you click outside the browser, the video will pause and the info shows.

Hiding the top ~60px works, but it is not a good solution for me.

解决方案

Directly from show info

Note: This is a deprecation announcement for the showinfo parameter. In addition, the behavior for the rel parameter is changing. Titles, channel information, and related videos are an important part of YouTube’s core user experience, and these changes help to make the YouTube viewing experience consistent across different platforms.

The behavior for the rel parameter is changing on or after September 25, 2018. The effect of the change is that you will not be able to disable related videos. However, you will have the option of specifying that the related videos shown in the player should be from the same channel as the video that was just played.

It clearly states that this is something they consider to be part of the cor youtube experience. There is no suggestion of a workaround or a new parameter that you could send to archive the old results. They are removing it. If you tried to force it out using javascript and css i would almost suggest you are against the TOC which states your not allowed to change that display. People should know you are showing something from YouTube

这篇关于YouTube嵌入showinfo已被弃用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆