nageeb2016 / swfobject

Automatically exported from code.google.com/p/swfobject
0 stars 0 forks source link

SWFObject doesn't work in Firefox 4 on OSX #560

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Go to 
http://www.bobbyvandersluis.com/swfobject/testsuite_2_2/test_multiple.html
2. See that it doesn't work
3. PROFIT!

What is the expected output? What do you see instead?
I expect to see embedded flash.

What version of the product are you using? On what operating system?
2.2 on OSX

Original issue reported on code.google.com by son...@gmail.com on 13 May 2011 at 9:26

GoogleCodeExporter commented 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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
No problem.

Original comment by platelu...@gmail.com on 15 May 2011 at 3:22