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 >[email protected] >http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev > _______________________________________________ webkit-dev mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

