Darkone wrote:

guoys wrote:

I want to develop a simple flash player with libflashplugin.so & npapi.h
 & gtk.Is it possible?


Kind of. You have to implement the netscape plugin api.

A good place to start is to look at the code for the activeX contol that hosts plugins.


Which is here:


http://lxr.mozilla.org/seamonkey/source/embedding/browser/activex/src/pluginhostctrl/

This code is for Win32, but but the theory should be the same for Unix - implement all the NPN functions, load the plugin and initialise the plugin properly with the table of functions and it shouldn't know the difference.

Basic controls which are initialise with name/value pairs, live in a window and render something should be pretty easy to get up and running and in fact that is pretty much all the ActiveX control supports.

Plugins which want to load URLs, or read data from streams will be a bit harder though not impossible with a good network lib. Plugins that *need* LiveConnect or XPConnect will need a lot of work to function properly.

Adam




Reply via email to