We use iframe to embed YouTube video to our web site.
I embedded <iframe id='player' src="https://www.youtube.com/embed/my-youtube-video-id" frameborder="0" allowfullscreen></iframe>
, to my site. The code works fine in most browsers, but not IE8 both Windows 7 or Windows XP (I haven't tested yet, but IE9 may have same problem). The video box just displays as black content.
And I also captured an JavaScript error from IE8
Message: Expected identifier, string or number
Line: 8
Char: 79
Code: 0
URI: http://www.youtube.com/embed/my-youtube-video-id
Then I opened the page generated by YouTube, the codes around that position is yt.setConfig({'POST_MESSAGE_ORIGIN': "*",'EVENT_ID': "my-youtube-video-id",});
, char 79 is my-youtube-video-id
. I remember IE would not like to take a JSON ended with a comma, is that so?