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

Your preferred username that is used when logging in.

Problem unloading flowplayer with an external overlay (Safari / IE) Created Nov 9, 2009

This thread is solved

Views: 2421     Replies: 2     Last reply Nov 13, 2009  
You must login first before you can use this feature

vodeclic

Posts: 23

Registered:
Jun 2, 2009

Problem unloading flowplayer with an external overlay (Safari / IE)

Posted: Nov 9, 2009

Hi,

I m using flowplayer inside an overlay.
My overlay is called as an external page where the player is in it, then i load the player from the overlay like this :


$(function() {
    $f("MyPlayerName").load();
});

This works.

But on the page which is calling the overlay i need to unload the player once the user click on the close button (if i don't unload it the sound stays in MSIE, known bug).

Si in order to accomplish that unload, i tried several methods
(all inside my onClose: function(content) { } of my overlay)

$("div#MyPlayerName_Container_Id").flowplayer(0).unload

or

$("div#MyPlayerName_Container_Id").flowplayer("MyPlayerName").unload

of

$("div#MyPlayerName_Container_Id", content).flowplayer(0).load();

Or even :

$f("*").each(function() { 
     this.unload
    //alert("test");
});

All of them works with Firefox, but none of them with MSIE or even Safari, it seems that these broswer are unable to retrieve the player that is placed on the overlay.

I hope someone could give me a hand, i spent 3 hours figuring out the problem, without any luck :/

Regards.

vodeclic

Posts: 23

Registered:
Jun 2, 2009

» Problem unloading flowplayer with an external overlay (Safari / IE)

Posted: Nov 13, 2009

Reply to: Problem unloading flowplayer with an external overlay (Safari / IE), from vodeclic
No one as any idea ? :(

Christian Ebert
Flowplayer support

Posts: 2803

Registered:
May 27, 2008

» » Problem unloading flowplayer with an external overlay (Safari / IE)

Posted: Nov 13, 2009

Reply to: » Problem unloading flowplayer with an external overlay (Safari / IE), from vodeclic
Have you tried onBeforeClose? Theoretic rationale: once the overlay is closed the player is not accessible.

Problem is, as you noticed, that different browsers have different load order. Note too, that in some situations Safari (or any other WebKit browser) crashes when unload is called; I filed a bug regarding this issue.