Sunday, June 2, 2024
 Popular · Latest · Hot · Upcoming
23
rated 0 times [  24] [ 1]  / answers: 1 / hits: 36683  / 11 Years ago, fri, july 12, 2013, 12:00:00

I am trying to embed a video in embed tag But I am getting this error :



Refused to display 'http://vimeo.com/27577981' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.


for youtube link : http://www.youtube.com/watch?v=zBEYR69o2Ao
when i replace watch?v= with embed/ , it runs fine. But its is not necessary that video will be of youtube. So I want a unique solution for this.


More From » video

 Answers
16

As the error message says, you can't embed that page in a frame. Vimeo provide documentation on how to embed their player. Follow that.



<html>
<head>
<title>{page_title}</title>
</head>
<body>
<iframe src=https://player.vimeo.com/video/{video_id} width={video_width} height={video_height} frameborder=0 title={video_title} webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
</body>
</html>

[#77038] Thursday, July 11, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
dewayneh

Total Points: 538
Total Questions: 114
Total Answers: 97

Location: Liberia
Member since Fri, Oct 22, 2021
3 Years ago
;