swf can not be load on safari inactive tab

31 views
Skip to first unread message

rizki

unread,
Nov 17, 2009, 5:52:30 AM11/17/09
to SWFObject
Howdy all,

I found a problem regarding creating the swf on inactive tab in Safari
browser. The flash content is the jw player and I believe this is the
swfobject problem on Safari. Since the playerReady() callback on
jwplayer was not being executed. Below is my code when the swf is
being recreated, and it will be recreated on inactive tab :

swfobject.removeSWF('player1');
document.getElementById('container').innerHTML = '<div
id="holder1">Player</div>';
var par = { flashvars: "autostart="+flashvars.autostart
+"&file="+flashvars.file+"&streamer="+flashvars.streamer
+"&type="+flashvars.type+"&bufferlength="+flashvars.bufferlength };
swfobject.createSWF(attributes, par, "holder1");

Anyone knows the solution ? Thanks for any help.

Sam Sherlock

unread,
Nov 17, 2009, 6:36:43 PM11/17/09
to swfo...@googlegroups.com
When you say tab do you mean browser or css tab?

Can you provide a link to the page with this issue?

- S




2009/11/17 rizki <ri...@maltech.jp>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "SWFObject" group.
To post to this group, send email to swfo...@googlegroups.com
To unsubscribe from this group, send email to swfobject+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/swfobject?hl=en
-~----------~----~----~----~------~----~------~--~---


LuizMurillo

unread,
Dec 8, 2009, 7:59:02 PM12/8/09
to SWFObject
I think this is an Safari issue. Or feature, dunno, hard to say.
If someone can solve it, please.

LM

On Nov 17, 9:36 pm, Sam Sherlock <sam.sherl...@gmail.com> wrote:
> When you say tab do you mean browser or css tab?
>
> Can you provide a link to the page with this issue?
>
> - S
>
> 2009/11/17 rizki <ri...@maltech.jp>
>
>
>
> > Howdy all,
>
> > I found a problem regarding creating the swf on inactive tab in Safari
> > browser. The flash content is the jw player and I believe this is the
> > swfobject problem on Safari. Since the playerReady() callback on
> > jwplayer was not being executed. Below is my code when the swf is
> > being recreated, and it will be recreated on inactive tab :
>
> > swfobject.removeSWF('player1');
> > document.getElementById('container').innerHTML = '<div
> > id="holder1">Player</div>';
> > var par = { flashvars: "autostart="+flashvars.autostart
> > +"&file="+flashvars.file+"&streamer="+flashvars.streamer
> > +"&type="+flashvars.type+"&bufferlength="+flashvars.bufferlength };
> > swfobject.createSWF(attributes, par, "holder1");
>
> > Anyone knows the solution ? Thanks for any help.
>
> > --~--~---------~--~----~------------~-------~--~----~
> > You received this message because you are subscribed to the Google Groups
> > "SWFObject" group.
> > To post to this group, send email to swfo...@googlegroups.com
> > To unsubscribe from this group, send email to
> > swfobject+...@googlegroups.com<swfobject%2Bunsubscribe@googlegroups .com>

Aran Rhee

unread,
Dec 8, 2009, 9:42:19 PM12/8/09
to swfo...@googlegroups.com
Like Firefox, I belive Safari only renders Flash content when it is actually visible in the current viewport of the user.

This is an issue for Flash content on sites which are "below the fold", in that the user has to actually scroll down before the Flash content is rendered to the page . I can fully understand why the browsers do it - There is no benefit (in fact there are a lot of negatives) to having non visible elements sucking up ram or cpu cycles in the background.


Aran


--


You received this message because you are subscribed to the Google Groups "SWFObject" group.
To post to this group, send email to swfo...@googlegroups.com.
To unsubscribe from this group, send email to swfobject+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/swfobject?hl=en.



Reply all
Reply to author
Forward
0 new messages