Facebook 如何播放禁止嵌入的 YouTube 视频? [英] How does Facebook play a YouTube video which has been banned from embedding?

查看:41
本文介绍了Facebook 如何播放禁止嵌入的 YouTube 视频?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,举个例子:

首先,尝试将 德雷克 - 地狱是的作为嵌入式 YouTube 视频播放.如果您通过单击 SO 中的超链接来执行此操作 - 它会起作用.但是,如果您将 URL 复制/粘贴到新选项卡中,则不会.

First, try and play Drake - Hell Yeah as an embedded YouTube video. If you do so via clicking on the hyperlink in SO -- it will work. But, if you copy/paste the URL into a new tab -- it will not.

您将看到一条错误消息:此视频包含来自 UMG 的内容.它被限制在某些网站上播放.在 YouTube 上观看."

You will see an error message: "This video contains content from UMG. It is restricted from playback on certain sites. Watch on YouTube."

现在,使用相同的链接(http://www.youtube.com/embed/muUEyXj-iqk ) 并将其作为帖子粘贴到 Facebook 墙上.歌曲愉快地播放.

Now, take that same link ( http://www.youtube.com/embed/muUEyXj-iqk ) and paste it as a post on a Facebook wall. The song happily plays.

正在进行什么样的通信才能让 Facebook 播放嵌入的视频,但从 YouTube 本身播放相同的视频却不起作用?!

What sort of communication is going on to allow Facebook to play an embedded video, but playing the same video from YouTube itself does not work?!

不知道应该从哪里开始寻找这种魔法.它是通过标题传达的...?或者其他一些聪明的编码......?还是 YouTube 和 Facebook 之间的协议?

Not sure where I should start looking for this magic. Is it communicated through headers...? Or some other clever coding...? Or an agreement between YouTube and Facebook?

更新: 因此,如果您单击我超链接到的 URL - 它将播放.但是,如果您将 URL 复制/粘贴到浏览器中 - 它不会播放.我假设 YouTube 正在查看 URL 的引用链接,并根据点击的来源确定视频是否可播放.由于它在点击时来自网站,但在复制/粘贴时并非来自任何人,因此我得到了不同的结果?

UPDATE: So, if you click the URL that I have hyperlinked to -- it will play. But, if you copy/paste the URL into your browser - it will not play. I assume that YouTube is looking at the referring link for the URL and determining if the video is playable based on where the hit came from. Since it is coming from a website when clicked, but not from anyone specifically when copy/pasted, I get different results?

推荐答案

嵌入限制由内容所有者设置.在这种情况下,Vevo 可以创建一个白名单,列出可以查看其视频的位置.因为您可以在 www.facebook.com 上看到它,这意味着它可以包含在此白名单中.YouTube 内容 ID 常见问题解答中提供了有关这些政策的一些详细信息.

Embed restrictions are set by the content owner. In this case Vevo could have created a whitelist of places their video can be viewed. Because you can see it on www.facebook.com it means it could be included in this whitelist. Some of the details about these policies are here on the YouTube content id faq.

http://www.youtube.com/t/contentid_more

对此问题最接近的答案是与在上传者所在地区被屏蔽有关的答案.应更新帮助页面以包含站点限制.

The closest answer to this issue is the one related to being blocked in an uploader's region. The help page should be updated to also include site restrictions.

这篇关于Facebook 如何播放禁止嵌入的 YouTube 视频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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