2
votes

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

2

2 Answers

1
votes

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.

0
votes

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.