Closed GoogleCodeExporter closed 9 years ago
I'm seeing the embedded SWFs just fine. Mac OS X 10.6.7, Firefox 4.0.1
Please provide more detail about your Firefox edition and OS version.
Original comment by platelu...@gmail.com
on 14 May 2011 at 4:01
swfobject fails on Firefox 4.0.1 to embed a youtube video, here the simple code:
<html>
<body>
<script type="text/javascript" src="swfobject.js"></script>
<div id="ytapiplayer">
You need Flash player 8+ and JavaScript enabled to view this video.
</div>
<script type="text/javascript">
var params = { allowScriptAccess: "always" };
var atts = { id: "myytplayer" };
swfobject.embedSWF("http://www.youtube.com/e/jo_B4LTHi3I?enablejsapi=1&playerapi
id=ytplayer", "ytapiplayer", "425", "356", "8", null, null, params, atts);
</script>
</body>
</html>
Runs fine on IE9 and Chrome. Just firefox doesn't like it.
Original comment by xun...@gmail.com
on 14 May 2011 at 11:35
I just tried your code in OSX 10.6.7, Firefox 4.0.1, and did not encounter any
problems.
Also, SWFObject 2.2 is designed to be placed in the <head>, not the <body>.
Have you tried running it from the <head>? swfobject.embedswf() includes a
domready function, so the SWF will be embedded as soon as the DOM is ready.
Original comment by platelu...@gmail.com
on 15 May 2011 at 3:32
Well the problem was I just freshly installed Firefox and forgot to install
flash player, quite stupid I know. After installing the plugin, Firfox 4.0.1
works just fine with swfobject.js. Sorry for the fuzz.
Original comment by xun...@gmail.com
on 15 May 2011 at 2:10
No problem.
Original comment by platelu...@gmail.com
on 15 May 2011 at 3:22
Original issue reported on code.google.com by
son...@gmail.com
on 13 May 2011 at 9:26