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

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

问题描述

我们在我们的网站上使用 YouTube 视频作为英雄横幅.

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

但几天前它开始显示标题、稍后观看按钮和分享按钮.如果 URL 结束,我们可以使用 &showinfo=0 隐藏它们.

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.

我发现 showinfo 已被弃用并且因此,您不能再隐藏它是在那里显示的 YouTube 视频的事实.

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?

你不能用 CSSJavaScript 来做,因为它是一个 iframe.

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

非常感谢任何想法.

更新:

视频上的任何图层或蒙版都无济于事,因为信息会在视频加载时显示,或者如果您在浏览器外部点击,视频将暂停并显示信息.

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.

隐藏顶部 ~60px 可以,但对我来说不是一个好的解决方案.

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

推荐答案

直接来自显示信息

注意:这是 showinfo 参数的弃用公告.此外,rel 参数的行为正在发生变化.标题、频道信息和相关视频是 YouTube 核心用户体验的重要组成部分,这些变化有助于使不同平台的 YouTube 观看体验保持一致.

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.

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

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.

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

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天全站免登陆