NPAPI:Pepper: Difference between revisions

Line 16: Line 16:
== The "Pepper" Platform ==
== The "Pepper" Platform ==


To provide these improvements to NPAPI we propose that the changes below be another platform, called "Pepper", that may be implemented by a browser and requested by a plugin.
To provide these improvements to NPAPI we propose that the changes below be another platform, called "Pepper", that may be implemented by a browser and requested by a plugin at startup.


A plugin may call NPN_GetValue() with the following NPNVariable to query the browser whether it supports the Pepper platform:
A plugin may call NPN_GetValue() with the following NPNVariable to query the browser whether it supports the Pepper platform:
Line 25: Line 25:
</pre>
</pre>


Once the plugin finds a Pepper to be supported, it calls NPN_SetValue() to tell the browser to use that platform. We're adding a new NPNVariable for this:
Once the plugin finds Pepper to be supported, it calls NPN_SetValue() to tell the browser to use that platform. We're adding a new NPNVariable for this:


<pre>
<pre>
89

edits