Re: [webkit-dev] Notifying a plugin it is in the background?
Hi, You could get some general information about plugin architecture by subscribing to *Late Night Cocoa* in iTunes. Episode 29 talks about plugin architecture. Here is a link where you can get further information: http://www.macdevnet.com/index.php/shows/latenightcocoa Home page: http://www.mac-developer-network.com/ Cheers Sam On 9 Jul 2008, at 23:38, Andre-John Mas wrote: > Hi, > > Is there any way to signal to a plug-in that its current context is in > the background, so that it could eventually reduce CPU priority to the > content? The issue I am looking at is that some plug-ins consume a lot > of CPU whether or not they are in foreground. In certain cases, > usually a Flash player, I find my CPU being maxed out by player which > is in another tab. If there was a way to reduce the effect of > background plug-in this would be useful. > > Andre > ___ > webkit-dev mailing list > webkit-dev@lists.webkit.org > http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] Notifying a plugin it is in the background?
Hi, Plugins get focus events from Webkit's plug-in implementation. After getting the focus lost event, the flash player may choose to suspend playing flash content. On the Mac port, I think the event is loseFocusEvent. This is called via NPP_HandleEvent (part of NPAPI). Regards Sriram >-Original Message- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] On Behalf Of ext >Andre-John Mas >Sent: Wednesday, July 09, 2008 6:39 PM >To: WebKit Development >Subject: [webkit-dev] Notifying a plugin it is in the background? > >Hi, > >Is there any way to signal to a plug-in that its current >context is in the background, so that it could eventually >reduce CPU priority to the content? The issue I am looking at >is that some plug-ins consume a lot of CPU whether or not they >are in foreground. In certain cases, usually a Flash player, I >find my CPU being maxed out by player which is in another tab. >If there was a way to reduce the effect of background plug-in >this would be useful. > >Andre >___ >webkit-dev mailing list >webkit-dev@lists.webkit.org >http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev > ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
[webkit-dev] Notifying a plugin it is in the background?
Hi, Is there any way to signal to a plug-in that its current context is in the background, so that it could eventually reduce CPU priority to the content? The issue I am looking at is that some plug-ins consume a lot of CPU whether or not they are in foreground. In certain cases, usually a Flash player, I find my CPU being maxed out by player which is in another tab. If there was a way to reduce the effect of background plug-in this would be useful. Andre ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev