As you can see at Chromium project, Chrome/Chromium will unsupport NPAPI soon. So you can develop PPAPI based solution, ok.
I develop a web portal which use a NPAPI-plugin. Each time the portal is loaded (and perhaps chrome is updated) I need to know if the client browser stays compatible (i.e. NPAPI-capable).
In other words I would something like that:
// sub-methods
function isTheBrowserNpapiCapable() {
// something I am searching
}
function displayTheNewPortal() {
// install the PPAPI plugin if not present
// do something ...
}
function displayTheRegularPortal() {
// install the NPAPI plugin if not present
// do something ...
}
// main code
if(isTheBrowserNpapiCapable()) {
console.log("The browser stays compatible with the regular NPAPI plugin!");
displayTheRegularPortal();
} else {
console.log("Got it! NPAPI is definitively discarded. User must install the new PPAPI plugin");
displayTheNewPortal();
}
I found "detect if chrome user has NPAPI active", "NPAPI not loaded in Chrome" or "detecting NPAPI using Javascript" but it does not help me. I am not intersested in knowing if my plugin is installed or not, but what is the right one (NPAPI or PPAPI) to install.
Someone has an idea to help me?
Regards