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

Your preferred username that is used when logging in.

Video keeps on playing in Internet Explorer when overlay is closed Created May 29, 2010

This thread is solved

Views: 2641     Replies: 3     Last reply Jun 1, 2010  
You must login first before you can use this feature

mYst.be

Posts: 3

Registered:
May 29, 2010

Video keeps on playing in Internet Explorer when overlay is closed

Posted: May 29, 2010

Hello,

I searched the forum and tried every solution provided in the found topics, but it didn't work for me.

I have flowplayer installed and work with images witch opens the movie in an overlay. In IE the movie doesn't stop when the overlay is closed (only the first one is)

the link to the site is:http://www.cliffhangers.be/Filmpjes/filmpjes.html

Another thing that I find very strange is: I copied the source code fromhttp://flowplayer.org/demos/tools/overlay2.htm and then pasted it in a local file... the internet page works, the local file gives the same problem!!!

Thanks for helping.

killebrewj

Posts: 83

Registered:
May 26, 2008

» » Video keeps on playing in Internet Explorer when overlay is closed

Posted: Jun 1, 2010

Reply to: » Video keeps on playing in Internet Explorer when overlay is closed, from mYst.be
The only reason it doesnt play in firefox or other browsers is the browser disables the object when it is not in view, but IE doesnt do this. I kindof like the fact that ojects keep playing to prevent them from stopping if their container becomes hidden temporarily so you can switch back, such as a tabbed setup.

Anyway, you should call the api stop or pause command to stop the video when the overlay is closed, for example $f().pause() or $f(1).pause() if you have more than one player. Similarly you may be able to somehow unload the entire player with $f().unload() but ive never tried it. Some examples if found by SEARCHING on this forum contain a stop and then unload.

mYst.be

Posts: 3

Registered:
May 29, 2010

Thank you

Posted: Jun 1, 2010

Reply to: » » Video keeps on playing in Internet Explorer when overlay is closed, from killebrewj
Thanks for explaining why thus happens. I thought it was just an error somewhere in my code.

I tried the unload and the pause separately, but that didn't work.
Now I have them both in the OnClose and now it seems to do what I want.

this.getOverlay().find("a.player").flowplayer(0).pause();
this.getOverlay().find("a.player").flowplayer(0).unload();

So problem solved :)