On Aug 23, 2013, at 11:01 AM, li shunlian <sonofsky2...@gmail.com> wrote:

> I create a WebView to open a web page and this web page can play audio. When 
> I close the NSWindow the audio stop. I open the window again, but the audio 
> can not play again and I have to reload this web page again.  Can anyone give 
> me some advices to make the audio not stop?

One thing I would suggest trying is ordering the window out instead of closing 
it. There is a difference - if the window is ordered out, it will disappear 
from the screen, but the window and its views will still be known by the window 
server. I haven't tried it, but based on my previous experience with 
IKImageBrowserView, the WebView ought to carry on as if nothing happened…

Nick Zitzmann
<http://www.chronosnet.com/>




_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to