• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Audio in WebView stop when close NSWindow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Audio in WebView stop when close NSWindow


  • Subject: Re: Audio in WebView stop when close NSWindow
  • From: Ken Thomases <email@hidden>
  • Date: Fri, 23 Aug 2013 15:00:21 -0500

On Aug 23, 2013, at 2:34 PM, Nick Zitzmann wrote:

> On Aug 23, 2013, at 11:01 AM, li shunlian <email@hidden> 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…

If that doesn't work, just move the window outside the frame of all screens, preferably outside of any likely screen frame.  The docs note that (-16000, -16000) is the minimum window origin supported, so that might be a good choice.

Regards,
Ken


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden


References: 
 >Audio in WebView stop when close NSWindow (From: li shunlian <email@hidden>)
 >Re: Audio in WebView stop when close NSWindow (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: NSWindow setMinSize: jumps up to current size instead
  • Next by Date: Re: Using CGContext as a graphics state object
  • Previous by thread: Re: Audio in WebView stop when close NSWindow
  • Next by thread: Re: Audio in WebView stop when close NSWindow
  • Index(es):
    • Date
    • Thread