I am not sure when/where in the chain the load_flash_player() function is
being called. Is the function happening on a click of of a link, or when the
page first renders?

Is it the player itself which is taking a long time, or the video playback?
(as the player swf should be in browser cache already)

When you say it is taking a long time, what are we talking in secs ? You say
it happens only happens on wmode=opaque?

If it is due specifically to wmode=opaque, there is nothing much you can do
to fix it as this is at the plugin/browser integration level...


Aran





On Sat, Sep 10, 2011 at 11:43 PM, varsha borhade <[email protected]>wrote:

> I am using flash player "9.0.0";
>
> I am facing this issue where swfobject ( swfobject.embedSWF) takes
> really long time on firefox and IE to get loaded when I updated wmode
> to opaque  .
> It doesn’t happen all the time but it does take long time once in 5
> hard refreshes  .
> I am using Firefox 6 .
>
> I was wondering if anyone have faced similar issue and have any
> suggestion around it. Object does get loaded eventually but it gets
> delayed.
>
> Any help is much appreciated.
>
>
> function load_flash_player() {
>  239             console.log("load_flash_player getting executed");
>  240             if
> (swfobject.hasFlashPlayerVersion(MIN_FLASH_VERSION)) {
>  241                 var flashvars = {
>  242                     loop: SoftlinesMoviePlayer.loopVideo ||
> false,
>  243                     buffer: 4,
>  244                     player_id: options.id
>  245                 };
>  246
>  247                 var params = {
>  248                     allowScriptAccess: "always",
>  248                     wmode: "opaque",
>  250                     quality: "high",
>  251                     bgcolor: "#FFFFFF",
>  252                     menu: "false",
>  253                     allowfullscreen: "false"
>  254                 };
>  255
>  256                 var attributes = {
>  257                     id: "video_swf_"+options.id,
>  258                     name: "video_swf_"+options.id
>  259                 };
>  260
>  261                 var placeholderID = options.id+"-placeholder";
>  262
>  263                 $('<div>').appendTo(container).attr({
>  264                     id: placeholderID
>  265                 });
>  265
>  266                 console.log("calling swfobject.embedSWF");
>  267                 swfobject.embedSWF(
>  268                     SoftlinesMoviePlayer.swf, placeholderID,
>  269                     '100%', '100%', MIN_FLASH_VERSION, null,
>  270                     flashvars, params, attributes,
>  271                     function(e) {
>  272                         if (e.success) {
>  273                             console.log("load_flash_player
> success");
>  274                             flash_object = e.ref;
>  275                         } else {
>  276                             console.log("VideoError");
>  277                             trigger(VideoError,self);
>  278                         }
>  279                     }
>  280                 );
>  281                 self.enabled = true;
>  282             } else {
>  282
>  283                 trigger(VideoNoFlashError,self);
>  284             }
>  285         }
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "SWFObject" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/swfobject?hl=en.
>
>

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

Reply via email to