You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

Exposing Flowplayer in Firefox loads the SWF twice Created Oct 21, 2009

This thread is solved

Views: 5039     Replies: 15     Last reply Dec 31, 2011  
You must login first before you can use this feature

fundp

Posts: 2

Registered:
Jun 5, 2009

Exposing Flowplayer in Firefox loads the SWF twice

Posted: Oct 21, 2009

Hi all,

after a long debugging session, we could solve an issue with Flowplayer in combination with the expose tool. The isssue only occured on Firefox (we use 3.5) and caused some weird behaviour. The SWF gets loaded twice and so the onLoad Event of Flowplayer was triggered twice.

Here is the setup:
Flowplayer 3.1.4
Expose 1.0.5
Firefox 3.5
Windows & Mac

Our player is embedded via a DIV Tag and is autostarted. If we trigger the expose on the players div via the expose().load() method the included Flowplayer SWF gets loaded and initialized again.

This behaviour only occurs if you donīt have setup a css position for the div to be exposed. In this case the expose tool will set the css position to relative in its load() method. This causes Firefox to rerender/reload the embedded SWF.

So be sure to keep an eye on the css position of your Flowplayer!

Simplimation

Posts: 2

Registered:
Jan 8, 2010

FF loading SWF twice without expose

Posted: Jan 9, 2010

Reply to: Exposing Flowplayer in Firefox loads the SWF twice, from fundp
I'm trying to use just the basic implementation in FF but it loads the SWF twice and doesn't play. I have Firebug and WebDev add-ons in FF 3.0.10.

Simplimation

Posts: 2

Registered:
Jan 8, 2010

Fixed: FF NoScript plugin causing conflict

Posted: Jan 9, 2010

Reply to: FF loading SWF twice without expose, from simplimation
Disabling the NoScript plugin in FF solved my problem.

jjevack

Posts: 2

Registered:
Dec 28, 2009

FF loading SWF twice - no expose and noscript disabled

Posted: Jan 25, 2010

Reply to: FF loading SWF twice without expose, from simplimation
I'm getting the dual flowplayer swf load as well with firefox and I've disabled NoScript and webdev and other plugins. I'm using ff3.5.7 and flowplayer commercial 3.1.5. Anyone else seeing this issue? Any thoughts on eliminating the double load?

I just checkedhttp://flowplayer.org/demos/installation/splash-image.html demo page and that swf loads twice as well. So *my* issue may be a flowplayer issue. Can someone verify flowplayer demo loads swf twice?

Thanks

loki_racer

Posts: 3

Registered:
Aug 17, 2010

» FF loading SWF twice - no expose and noscript disabled

Posted: Aug 17, 2010

Reply to: FF loading SWF twice - no expose and noscript disabled, from
I'm confused on why this was marked resolved. I don't have NoScript installed and can confirm that the SWF is loaded twice on the page jjevack listed and a couple pages that I use jQuery Tools.

Has this problem actually been resolved?

heikki

Posts: 291

Registered:
Sep 5, 2010

» » FF loading SWF twice - no expose and noscript disabled

Posted: Sep 10, 2010

Reply to: » FF loading SWF twice - no expose and noscript disabled, from loki_racer
Maybe the proper term would be "won't fix".

I have been wrestling with the same kind of issues when embedding flash into a complex application type webpage. The fix to double loading was to change the structure and logic of the page so that the layout changes didn't affect the embedded flash.

The issue is the browser + flash combination. You can't really fix that with javascript, only do workarounds to some degree.

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1867

Registered:
Nov 16, 2007

» Exposing Flowplayer in Firefox loads the SWF twice

Posted: Feb 4, 2011

Reply to: Exposing Flowplayer in Firefox loads the SWF twice, from fundp
yea. I can see this happening. The same thing seems to happen with SWFObject too:

http://flowplayer.org/demos/installation/alternate/swfobject-2.1.htm

But not with OBJECT tag:

http://flowplayer.org/demos/installation/alternate/object-tag.htm

Investigating this now. Looks like SWFObject haven't solved this either:

http://code.google.com/p/swfobject/issues/detail?id=456

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1867

Registered:
Nov 16, 2007

» » Exposing Flowplayer in Firefox loads the SWF twice

Posted: Feb 4, 2011

Reply to: » Exposing Flowplayer in Firefox loads the SWF twice, from tipiirai
could not get this work. seems like the bug is on Firefox itself. look for these:

https://bugzilla.mozilla.org/show_bug.cgi?id=438830
https://bugzilla.mozilla.org/show_bug.cgi?id=445599

picked these links from SWFObject FAQ.

http://code.google.com/p/swfobject/wiki/faq

Answer 16.

This is unfortunate. To avoid this set a future expiry header for the SWF file - which is a good pattern anyway.