I found out that the <object> tag with the 'data' attribute won't work
in IE if opening the video with fancybox
example:
<object class="flashvideo" type="application/x-shockwave-flash"
data="
http://www.youtube-nocookie.com/v/GfiuwH9l96g">
if removing the 'data' attribute, the video will play (within
fancybox) in IE but not in the rest of the standard browsers
so the workaround is targeting IE:
<!-- for all browsers -->
<!--[if !IE]>-->
<object class="flashvideo" type="application/x-shockwave-flash"
data="
http://www.youtube-nocookie.com/v/GfiuwH9l96g">
<!--<![endif]-->
<!-- for IE only, all versions -->
<!--[if IE]><!-->
<object class="flashvideo" type="application/x-shockwave-flash" >
<!--<![endif]-->
see the thread for further information:
http://groups.google.com/group/fancybox/browse_thread/thread/e3c68c35b64ab34/4c696edca3c81cdc
OK, with silverlight the problem is pretty similar because an <object>
tag is created by the silverlight js file (use firebug to analyze it):
so for your first video you get
<object height="355" width="425" data="data:application/x-
silverlight," type="application/x-silverlight">
this data="data:app..... " causes the conflict with IE and fancybox
so
the hack to apply here is:
1. edit the silverlight.js file
2. look for/around the line 308 and find:
htmlBuilder.push('<object type=\"application/x-silverlight\"
data="data:application/x-silverlight,"');
3. and remove the 'data' attribute and value and leave just:
htmlBuilder.push('<object type=\"application/x-silverlight\"');
(just be careful you don't delete more than this)
4. then save the file (I saved it as silverlight-ie.js to make it
different)
5. and call it from your <head> section
<script type="text/javascript" src="silverlight-ie.js"></script>
and voila! ... problem solved, you have it working in IE (well, just
tested IE7 but I don't see why not in IE6 and IE8)
the curious detail here is that in this case firefox doesn't seem to
care if the 'data' attribute is present or not, it just keep working;
maybe is because the nature of silverlight but I can't say
I also tested it with Opera(9.64), Safari(Windows Beta 4) and Chrome
and works like a charm
see it yourself and feel free to explore the source and files
http://jquery.diaz-cornen.com/fancybox/silverlight_04jun09.html