YouTube API:API 表示它是可嵌入的并且未被阻止,但是当它被嵌入时它被阻止 [英] YouTube API: API says it is embeddable and not blocked but when it is embedded it is blocked

查看:25
本文介绍了YouTube API:API 表示它是可嵌入的并且未被阻止,但是当它被嵌入时它被阻止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不知道有没有人遇到过这个问题.我正在尝试嵌入The Killers - Human"音乐视频.

I wonder if anyone ever encounters this problem. I am trying to embed "The Killers - Human" Music Video.

当我按如下方式执行 API 提要请求时:

When I did an API feed request as follow:

http://gdata.youtube.com/feeds/api/videos?v=2&alt=jsonc&q=_Q9B9LOJIXsk

显示视频是可嵌入的,没有被屏蔽.它甚至声明您可以使用以下 URL 进行嵌入:

It shows that the video is embeddable and is not blocked. It even states that you can embed using the following URL:

http://www.youtube.com/v/Q9B9LOJIXsk?f=videos&app=youtube_gdata

但是,当我尝试此操作并播放视频时,我收到错误消息,该视频包含来自 UMG 的内容,并且仅限于在某些站点上播放.应该可以播放.

However, when I tried this and played the video, I have received an error that the video contains content from UMG and is restricted to playback on certain sites. It is SUPPOSED to be able to playback.

我已经仔细检查了所有状态等.我想知道我是否遗漏了什么来确定某个视频是否不能嵌入到某个网站上.

I have double checked all the states etc. I wonder if I have missed anything to determine if a video is not embeddable or not on certain site.

感谢您的帮助.

推荐答案

当你打开 json 时,你实际上可以看到这个

when you open the json you can actually see this

"status":{"value":"restricted","reason":"limitedSyndication"},
"restrictions":[{"type":"country","relationship":"deny","countries":"DE"}]

这篇关于YouTube API:API 表示它是可嵌入的并且未被阻止,但是当它被嵌入时它被阻止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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