npapi

how to get npapi plugin for NPP_StreamAsFile

How can i get a npapi plugin. do i have to write for my own. or i can get it from somewhere. and please tell me that how to create a npapi.dll from npapi.h file. thanx. or if anybody have any npapi.dll for NPP_StreamAsFile than please give me the link to download it and documentation for how to use it. thanx ...

how to call NPP_StreamAsFile

Hi I have a plugin.dll which contains this all npp functions I have embeded it in my chrome plugin successfully but I dont know how to call this NPP_StreamAsFile function from my javascript. I dont have any idea. There are so many parameters to pass which I dont have any idea about . please help me. Thanx in advance. ...

A simple hello world NPAPI plugin for Google Chrome?

I am trying to make a chrome plugin but Chrome API doesn't give me enough power. I want to use NPAPI but I have no idea how to use it but I do have experience in Visual C++. Can someone show me a 'Hello world' in C++ application so I can get started? ...

npruntime example plugin (c++) of NPAPI fails to run on mac OSX 10.5

Hi I have compiled Mozilla NPAPI plugin example npruntime on Mac OSX 10.5. It give me a libnprt.dylib I am bundling this dylib with proper plist. On loading the plugin, NP_GetMIMEDescription() is getting called (i am logging this), but its not going inside NP_GetEntryPoints(). How a part of code is getting loaded and a part not? Can...

Fail to load NPAPI plugin in Google Chrome on Mac OS X

I have been trying to get Google Chrome (6.0.401.1 dev) on Mac OS X to load an NPAPI plugin without success so far. I have been working around the npsimple example from here: http://git.webvm.net/?p=npsimple. Using gcc on Mac and VC++ 2008 on Windows I managed to get it running on Safari and Firefox on Mac OS X and Firefox and Google Ch...

Launching an external application from within a NPAPI Plugin

I am trying to work out why an NPAPI plugin I have written, which works fine in terms of performing operations triggered via Javascipt calls, cannot use CreateProcess() or ShellExecute() to launch an application from a path specified via the Javascript call. I can seemingly use either of these methods and they return success, i.e. no e...

Is it possible to use the NPAPI interface to download files without using the local cache?

I am writing a browser plugin using NPAPI and as part of the plugin I need to download a file. For this I have been using the NPN_GetURL function out of the NPNetscapeFuncs structure provided to my plugin after it is loaded. This works fine except that if the file has already been downloaded, Firefox seems to always pull the file out o...

Is it possible to catch media stream URL of flash player using NPAPI functions ?

Hi guys. I'm trying to make a video download panel for Chrome likes Real Player's one ( a DLL plugin ).. My question is : "Is it possible to use NPAPI funtions such as NPP_NewStream, NPP_StreamAsFile, NPP_DestroyStream... to catch the media stream URL of flash-player ? " If not, then what part of NPAPI do I have to use ? Thanks.. ...

How the NPP_NewStream of NPAPI wall called? Automatically or by a plugin-request ?

I have read a lots document on NPAPI but I still do not understand: How the NPP_NewStream of NPAPI wall called? Automatically by Browser, whenever it load a page, an image, an video,.... or manually by our plugin-request ? ...

When is onBind or onCreate called in an android service browser plugin?

I have adapted the example plugin of the android source and the browser recognises the plugin without any problem. Here is an extract of AndroidManifest.xml: <application android:icon="@drawable/icon" android:label="@string/app_name" android:debuggable="true"> <service android:name="com.domain.plugin.PluginService"> <inte...

Capture Flash Audio in 4.7 Edge?

Is there a way to capture plugin (Flash) audio before it gets to the sound card? I'd like to record plugin audio, hopefully without actually playing the sound. Capturing audio at the device level is an absolute last resort, as the application would pick up all system audio rather than just the Webkit plugin. I'm aware of the recent swi...

How to create a browser plugin bundle on OS X

I have created a NPAPI browser plugin for Firefox on linux. I installed the plugin by copying the shared library into my user's profile plugin directory. I am able to build the shared library on OS X, but I am not familiar with how to create a plugin bundle that Firefox/Chrome/Safari can use. How can I create a plugin bundle that will...

Video Player Plugin Development for Internet Explorer and Safari

Hello, We are planning to develop a browser plugin for IE and Safari to stream video in a proprietary video Player. We are investigating for the required technologies and various design approaches. Could someone help by answering the following questions? What are the various aspects we need to focus while designing the plugin? What i...

MIME handler for Internet Explorer

I want to have an equivalent of NPAPI plugin for Firefox (or just any other sane browser). Generally I need IE to start my own program in response to object tag and let it draw the content itself. Where do I start? I tried to look it up on MSDN http://msdn.microsoft.com/en-us/library/aa902517.aspx but could not find anything suitable...

Utility like NPAPI Spy for ACTIVEX?

Hi, just wondering if there is any open source implementation for an ActiveX web plugins similar in functionality to the one implemented by NPAPI Spy utility available at: http://mxr.mozilla.org/seamonkey/source/modules/plugin/tools/spy/ Thanks, Giovanni ...

Firefox crash instantiating NPAPI plugin

I had the whole plugin working previously as a very simple implementation with lots of global and static variables, i've now converted it to an object based design so I can instantiate multiple instances safely etc. However, since I have done that, when creating an instance of the plugin it gets as far as the MyScriptableNPObject::NewOb...

npapi full screen

I have a npapi plugin working on WebKit. How do I get it to work fullscreen? Is setting the screen browsers or plugins job? ...

How to write an NPAPI plugin with functionality of WScript.Shell

I am very new to Web development, and have been writing some javascript that makes use of WScript.Shell via ActiveX. I am aware that browsers other than IE don't support ActiveX though. After doing some digging through Google, I have discovered that I may be able to do something similar on all web kit based browsers via NPAPI. I have n...

Starting default application for a file on Linux

Hey all, I'm working on a Firefox NPAPI plugin + XPCOM component. I've run into a dilemma: Given a file downloaded from the Internet (say a PDF or PNG) how do I start the default helper application to display that file on Linux using C/C++? Currently I'm using the system function call to invoke the gnome-open command and passing it the...

[NPAPI] NPN_MemAlloc after NPN_MemFree screws the returning data to Google Chrome

Hi, I've finished my NPAPI plug-in and it works great in Google Chrome but there's a strange problem. The problem is that I've coded a method in the plug-in that returns a string to the browser. In order to do so, you have to allocate a memory in the browser and copy the resulting string to it. Something like: bool ScriptablePluginObje...