Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

0 views
Skip to first unread message

Larry Gillstrom

unread,
Jun 5, 2006, 4:46:51 PM6/5/06
to
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

Emmanuel

unread,
Jun 6, 2006, 6:34:59 AM6/6/06
to

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

Larry Gillstrom

unread,
Jun 6, 2006, 1:03:33 PM6/6/06
to
"Emmanuel" <emmanuel...@gmail.com> wrote in message
news:1149590099.6...@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


0 new messages