문제

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