Re: Audio in WebView stop when close NSWindow
Re: Audio in WebView stop when close NSWindow
- Subject: Re: Audio in WebView stop when close NSWindow
- From: Alex Zavatone <email@hidden>
- Date: Fri, 23 Aug 2013 13:14:00 -0400
I noticed something on iOS the other day that may help you with this issue.
My app has a tab bar controller with two tabs. In one tab's scene, I load a video in a UIWebView and it starts playing and you can hear the audio. Click on the other tab to show other content and the audio keeps playing, even after the view has disappeared.
Obviously, the item and the view are still in memory.
What do you want to have happen when you reopen the window? Resume the playback at the last position? What kind of audio file is it? What are you doing to make the audio play in the first place?
I have seen videos that are played back within UIWebViews on iOS that do not start sometimes, because the issue to start happens before the video engine has loaded, but it's intermittent.
Tell us more please.
On Aug 23, 2013, at 1:01 PM, li shunlian wrote:
> Dear list,
>
> I created a WebView to open a web page and this web page can play audio. When I close the NSWindow the audio stops. 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 advice to make the audio not stop?
>
> Thanks!
> _______________________________________________
>
> 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
_______________________________________________
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