Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
IE
ie55.activexcontrol
ie55.add_ons
ie55.browser
ie55.com.codedownload
ie55.css
ie55.databinding
ie55.dhtml
ie55.dhtml.authoring
ie55.dhtml.behaviors
ie55.dhtml.scripting
ie55.icw
ie55.misc
ie55.multimedia
ie55.oe.stationery
ie55.outlookexpress
ie55.programming
ie55.setup
ie55.webbrowser_ctl
ie6.browser
ie6.ieak
ie6.oe.wishlist
ie6.setup
ie6_oe.stationery
ie6_outlookexpress
  
 
date: Mon, 5 Jun 2006 13:46:51 -0700,    group: microsoft.public.windows.inetexplorer.ie55.programming.webbrowser_ctl        back       


Flash movie continues to play sound after WebBrowser control is closed.   
Hi,

Our application hosts a WebBrowser control that loads java applets and flash
movies. We are having a problem where the flash move music continues to play
after the web browser window is closed. The music continues to play until
the main application is closed at which time an exception is generated in
the flash OCX callback used by winmm.dll.  We call both the ::stop and
::quit methods for the IWebBrowser2 interface before closing the browser
window, but this does not  top the flash movie's music. If anyone has any
ideas about how to solve this issue, they would be greatly appreciated.

Larry Gillstrom
Senior Client-side Developer
Mindspan Technologies
date: Mon, 5 Jun 2006 13:46:51 -0700   author:   Larry Gillstrom

Re: Flash movie continues to play sound after WebBrowser control is closed.   
Larry Gillstrom wrote:
> Hi,
>
> Our application hosts a WebBrowser control that loads java applets and flash
> movies. We are having a problem where the flash move music continues to play
> after the web browser window is closed. The music continues to play until
> the main application is closed at which time an exception is generated in
> the flash OCX callback used by winmm.dll.  We call both the ::stop and
> ::quit methods for the IWebBrowser2 interface before closing the browser
> window, but this does not  top the flash movie's music. If anyone has any
> ideas about how to solve this issue, they would be greatly appreciated.
>
> Larry Gillstrom
> Senior Client-side Developer
> Mindspan Technologies

We have the same problem. If you force a navigation to about:blank just
before closing the webbrowser it stop the music. I'm not sure this is a
good idea, since I don't know what happen behind the scene. If someone
from MS is here, its easy to reproduce :
- generate an mfc based MDI application with an htmlview
- set the url to navigate to http://www.flashsound.com/
- close the window
The problem occur with flash8. IE7 and maxthon do not have the bug,
there must be something to do.

Cheers.

Manu
date: 6 Jun 2006 03:34:59 -0700   author:   Emmanuel

Re: Flash movie continues to play sound after WebBrowser control is closed.   
"Emmanuel"  wrote in message 
news:1149590099.662300.246710@y43g2000cwc.googlegroups.com...

> We have the same problem. If you force a navigation to about:blank just
> before closing the webbrowser it stop the music. I'm not sure this is a
> good idea, since I don't know what happen behind the scene. If someone
> from MS is here, its easy to reproduce :
> - generate an mfc based MDI application with an htmlview
> - set the url to navigate to http://www.flashsound.com/
> - close the window
> The problem occur with flash8. IE7 and maxthon do not have the bug,
> there must be something to do.
>
> Cheers.
>
> Manu
>

Thanks Manu,

That solution will work well enough for us.  I implemented it to navigate to 
a page that uses some  javascript in the onload event to trigger a callback 
to the parent window. When the parent window gets the callback it knows it 
is safe to close itself.

Larry
date: Tue, 6 Jun 2006 10:03:33 -0700   author:   Larry Gillstrom

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us