Hello Eirik and all,
As a next step I've migrated to WM5 one of the plugin samples included
in mozilla npapi docs. Now I've got a "npwm5.dll" ready to test if
Opera Mobile recognizes it. My issue now is to now where shall I
install it? Which is Opera Mobile plugin directory?
My second question is if there is a "opera:plugins" URI or similar
for
Opera mobile to display all the installed plugins, because my compiled
sample has no functionality, I need this to know if the plugin is
detected.
Best regards
- Juanjo.
El día Wed, 31 Oct 2007 15:53:00 +0100
Eirik Byrkjeflot Anonsen <eirik@opera.com> Escribió:
> Juan José García Rojo <jjgrojo@tid.es> writes:
>
> > El día Wed, 31 Oct 2007 08:43:26 +0100
> > Eirik Byrkjeflot Anonsen <eirik@opera.com> Escribió:
> >
> >> Juan José García Rojo <jjgrojo@tid.es> writes:
> >>
> >> > Hello!
> >> >
> >> > I am interested in creating a plugin for opera mobile. Does
Opera
> >> > Mobile support NPAPI? Will this work for OM 8.60 or 8.65?
> >> >
> >> > Greetings.
> >> >
> >>
> >> That depends on the specific port. The core code supports it, but
the
> >> support has to be added to the platform code as well.
Furthermore,
> >> the NPAPI usually can not be used directly, but must be
"interpreted"
> >> (i.e. modified) to match how the device works.
> >>
> >> On some systems the plug-in interface is used to add specific
features
> >> (e.g. flash or embedded video). But I suspect that usually the
> >> plug-in interface is only used as a bridge, and there may be no
way
> >> for third-party developers to hook into it.
> >>
> >> Disclaimer: I don't know the details of that many opera mobile
> >> projects, so I may be very wrong.
> >>
> >> eirik
> >
> >
> > Hi Eirik, thanks for your fast response, I understand the complexity
of
> > my question, but your answer doesn't make it clearer.
>
> :)
>
> >
> > What do you mean when you say that "NPAPI can not be used
directly, but
> > must be "interpreted" to match how the device works"?.
I assume that a
> > plugin for a mobile device will depend on the architecture
(processor)
> > and operating system. Are you saying this?
>
> No, those things are fairly straightforward. I'm thinking about the
> parts of the NPAPI that is really system-specific. For example, how
> is the plug-in loaded? If the system has something similar to dlopen
> and dlsym (load a shared library using its file name, find functions
> in the shared library using their names), then it is fairly obvious
> how to do it.
>
> Or what about the parameters to NPP_SetWindow()? On windows, one of
> the parameters is an HWND, on unix it should be the X window id
> belonging to an XmDrawingArea (though we tend to ignore that part even
> on unix desktop these days), and on mac it should be something rather
> more complex.
>
> There are things in the NPAPI specification that are only described on
> windows, unix/x11 and mac. And not always on all of them either.
> Those things must be handled in some way on the system that opera
> mobile is running on. In some cases there's an obvious solution, and
> you can just go ahead and test if that was the solution chosen by the
> browser.
>
> >
> > I want to develop a plugin to add new functionality to opera
> > mobile, and I wanted to know if it was possible through NPAPI. If
this
> > is an open API, i don't see why third parties can not develop
plugins.
> > Is there any licence contraints?
>
> No, I'm talking purely technical problems here.
>
> Another point is that if the platform does not have other NPAPI
> plug-ins, it is unlikely that opera's plug-in support would be very
> good. After all, it is very hard to make good code when there's
> nothing to test it with.
>
> >
> > If Opera Mobile does not support NPAPI, is there anyother plugin
> > interface available?
>
> I doubt it. Obviously, some things can be done in pure html, css and
> javascript. But for the kind of stuff NPAPI is meant for, I don't
> think we support any alternatives.
>
> But it does of course depend on what you are trying to accomplish.
>
> >
> > Finally Eirik, would you be so kind to forward my request to any one
in
> > Opera who has the details about opera mobile plugins?
> >
> > Greetings.
>
> Sorry, I wouldn't even know who that would be.
>
> eirik
--
|