YouTube API: API says it is embeddable and not blocked but when it is embedded it is blocked

走远了吗. 提交于 2020-01-23 12:25:28

问题


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

When I did an API feed request as follow:

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

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

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.

Thank you for your help.


回答1:


when you open the json you can actually see this

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


来源:https://stackoverflow.com/questions/5184003/youtube-api-api-says-it-is-embeddable-and-not-blocked-but-when-it-is-embedded-i

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!