Is there any way to embed youtube videos that is disabled embedding by request on youtube. Perhaps by embedding them on a custom iframe or youtube-api?

The example video I am looking at is this: http://www.youtube.com/watch?v=fhG5ToCpNh4&feature=c4-overview-vl

有帮助吗?

解决方案

Using http://youtube.com/v/fhG5ToCpNh4/ in an iframe yields these attributes for the YT player:

x-frame-options:SAMEORIGIN
x-xss-protection:1; mode=block;

Sorry but I think you are out of luck, the only known work-around for the same-origin policy is to write a server-side proxy. Which in this case you may as well download the .flv and host it yourself.

其他提示

If the restrictions are due to manually requesting that embedding is disabled, you can't get around that; that's the whole point of the restriction.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top