Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Embedded youtube videos blocked by network admins stopping web page loading

We've developed a website for one of our clients which has some embedded youtube videos. Unfortunately, the clients internet filtering software blocks youtube access - this cannot and will not be changed because it's their (archaic) policy.

The problem is that our client cannot load the website because it gets hung up on trying to load the embedded videos. Apparently a regular html page with a 'forbidden' message appears when someone tries to access youtube - so I would have thought the browser would give up and move on.. but no.

Does anyone have any simple suggestions as to how this can be resolved? Perhaps the 'denied' message needs to have a 403 header to get the browser to give up...alternatively is there a nice way to do this in the html?

like image 725
John Hunt Avatar asked May 30 '11 01:05

John Hunt


1 Answers

Could you use IFrames?

<html>
 <body>
  <p> anything outside of the frame</p>
  <iframe src="page_with_video.htm>
   <p> Sorry you can't acess this</p>
  </iframe>
 </body>
</html>

and then you could just embed the videos on an external page, which should cause the page with the videos to load separately from the rest.

like image 104
Lledargo Avatar answered Oct 14 '22 08:10

Lledargo