[webkit-dev] Notifying a plugin it is in the background?
Sriram.Yadavalli at nokia.com
Sriram.Yadavalli at nokia.com
Wed Jul 9 17:46:15 PDT 2008
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: webkit-dev-bounces at lists.webkit.org
>[mailto:webkit-dev-bounces at lists.webkit.org] 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 at lists.webkit.org
>http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>
More information about the webkit-dev
mailing list