How to Embed YouTube so that it works in IE 8

Discussion in 'Web Design and Development' started by Gregintosh, May 29, 2010.

  1. Gregintosh macrumors 68000

    Jan 29, 2008
    I am trying to embed some YouTube videos in a website, and they seem to work on Chrome and Safari (on both mac and PC, didn't test FireFox) but they do not work in IE 8. I was using the default code that YouTube generates for you.

    I heard that IE 8 has some issues with YouTube embedding from googling around but I haven't found any solutions that work.

    Can anyone help me get those YouTube videos going in all browsers?

    Also, if someone could help me get them working on the iPad too (I know YouTube can do HTML5) I'd really appreciate it.

    Edit: Fixed the problem for IE 8. Now I would still like a solution for the iPad if possible.
  2. Darth.Titan macrumors 68030


    Oct 31, 2007
    Austin, TX
    You have to sign into your Google account on the iPad and opt in for the YouTube HTML5 beta. Then embedded YouTube videos will show on the iPad if the video is available in HTML5 format.
  3. 7on macrumors 601


    Nov 9, 2003
    Dress Rosa
    Look up swfobject.js. With that you can specific alternative HTML for flashless browsers. Like a video src="" tag

Share This Page