Tuesday, December 29, 2009

NPAPI Plugin: Example from firefox

http://hudolejev.blogspot.com/2009/08/building-npruntime-sample-plugin-in.html

Get the firefox source first.
If you don't want to build huge source, follow the reference page to have a Makefile


Go to mozilla/modules/plugin/sdk/samples/npruntime and make. (You may have some error with NP_TRUE/NP_FALSE/TRUE/FALSE, just replace it with true/false).

Copy npsimpleplugin.so into .mozilla/plugins/. Browse the test.html...



You can also do this in the "basic" sample.

No comments:

Related Posts Plugin for WordPress, Blogger...