I tried both npapi
and firebreath
, but all of them only work well on Firefox, and easily stuck on Chrome . the function I wrote in plugin is the simplist "return 0;"
. i processed the Xemd case.
NPError NPP_GetValue(NPP instance, NPPVariable variable, void *value)
{
...
switch (variable) {
case NPPVpluginNeedsXEmbed:
*((BOOL*)value) = TRUE;
...
}
Problem solved when I tried with chrome version 22. Higher version may also work. It's not easy to find such an old version ,I'm afraid my plugin will never be used.-_-||