Difference between Gecko Plug-in API and NPAPI - npapi

Can anyone tell me the difference between Gecko API Plugin development and NPAPI plugin development ?
And can anyone provide me with startup document on NPAPI plugin ?
Thanks in advance,
Akshay Sahu.

NPAPI is the plug-in API supported by Gecko, so there is no difference.
As for getting started, search this site for "NPAPI example" or "NPAPI documentation" and you'll get plenty of previous answers to that exact question.

Related

How to develop Chrome/Firefox Plugin (no Extensions ! no npapi!)

With the deprecation of NPAPI, how to develop a Chrome/Firefox plugin insteadof npapi plugin in windows?
i find the below results:
use pppai or nacl/pnacl from bellow link:
https://developer.chrome.com/native-client/sdk/download
but I find the notes:
Deprecation of the technologies described here has been announced for platforms other than ChromeOS.
Please visit our migration guide for details.
So how to use it and make chrome/firefox plugin that can be auto-load??
Thanks by advance and sorry for my poor English ( ask me if you don't really understand my answer )

couldn't load plugin - google chrome

My operating system is Centos 6.7, and browser that I use is Google chrome. While I go to most of the video sites, it gives me "couldn't load plugin" error (except youtube). I started wondering why is the error getting popped up, while I had already installed Adobe flash player and the version is 21.0.0.216. So, I decided to do some research on it to solve the issue. What I have understood is that there are two types of flash players, PPAPI and NPAPI, and for my system configuration, it needs NPAPI to be enabled, as given in this link (http://www.tweakjc.com/how-to-fix-chrome-couldnt-load-plug-in-error/#imageclose-113). But, unfortunate for me I don't have an option of NPAPI in my browser plugin list. screenshot of my AFP in the plugins list, where only PPAPI is available
Is there a way to get NPAPI type of AFP, or is my perception is right or is there any other workaround possible to play my vids? Thanks in advance
That link is to obsolete information; NPAPI support was completely removed from Chrome last year.

native browser plugins alternatives to NPAPI

Hello as you might now NPAPI is deprecated.
What are the alternatives to this? I see skype released now the web version where you need to install a web plugin to make voice and video calls. Looking over what I installed I arrived to the conclusion that on chrome they are using Google Native Client: https://developer.chrome.com/native-client
But this one is not supported on firefox/safari (only chrome).
On Firefox/Safary I'm not sure what they are using.
So what are now the best alternatives for this kind of job where using c++ is mandatory (to extend an existing app and make it available as web plugin)
Silviu
After Chrome drop the NPAPI support, there is no-common technology support by Firefox/Chrome/Safari. You can consider about Firebreath 2.0. It allow you use one C++ implement to support different browser.
It's not released yet... If you like to try version 2.0, you can get source code from https://github.org/firebreath/firebreath (the "refactor" branch)
Note: version 2.0 make huge change, because the call between plugin and javascript are asynchronous! Upgrade from older version required lots of javascript change.

Has anyone got a simple step by step Mozilla plugin tutorial

I'm trying to create a Mozilla browser plugin for the sole purpose of detecting with javascript whether or not an application that I have written is installed. This was inspired by another stackoverflow question and answer on a similar subject.
All I want really is a HelloWorld type example as what I need to write will be even simpler than that. There is a lot of information on the Mozilla website, but as a plugin noob and a C++ novice I'm experiencing information overload. I just need a step by step "this is how to create your first simple plugin".
I have already written the IE equivalent by following this ATL tutorial. This is the kind of level of guide that I would ideally like to find.
Please note, this is specifically about Mozilla plugins and not extensions - Googling this subject brings up a lot of information about extensions in addition to plugins.
Here is a step by step guide for how to build the npruntime sample plugin using Visual Studio. When googling for info regarding Mozilla plugin development, search for npruntime. That is the scriptable plugin standard suported by Gecko (Firefox) as well as Opera and Chrome.

Any example of writing an NPAPI plugin in Linux?

I need to write a browser plugin to communicate with another process, and it seems I have to use NPAPI plugins. Is there any example or open source NPAPI plugin I can refer to?
Many thanks for your reply.
Summary of answers
http://mxr.mozilla.org/seamonkey/source/modules/plugin/samples/
http://www.firebreath.org/
http://code.google.com/p/nixysa/
http://code.google.com/p/npapi-file-io/
2 and 3 are both frameworks to make plugin development easier.
I found one example at
http://mxr.mozilla.org/seamonkey/source/modules/plugin/samples/
you could also use the open source FireBreath plugin framework; they are nearing a 1.0 release for windows only, but it would not be hard to port it to linux; mac os shouldn't be bad either, but it will take a little work to get CMake to generate the correct bundle type =]
Yes, I am one of the primary maintainers, so I'm a bit biased. You can also find some good general information on how NPAPI works on my blog, starting here:
http://colonelpanic.net/2009/03/building-a-firefox-plugin-part-one/