Dev.Opera - Follow the standards, break the rulesDev.Opera - Follow the standards, break the rules

Login

Lost password?

Forums » Article Discussions

Discuss the articles posted at DevOpera

Note: You need to login to post in the forums. if you don't have an account you first need to sign up.

By operadev anchor Friday, 18. January 2008, 13:21:23

The Opera plug-in interface

This article documents how to extend the Opera browser through the new NPAPI plug-in interface, a cross browser plug-in scripting solution developed between a number of browser vendors.

( Read the article )

By Lex1 anchor Saturday, 19. January 2008, 22:13:56

avatarWhere SDK?

By nywles anchor Monday, 28. January 2008, 09:50:17

avatarHi all,

Is there any plugin development documentation or API (header) files for Opera 8 on the UIQ 3.x platform available?

Searching on this site and on Google unfortunately did not provide any pointers to where to find this information. Though, the 'Enable plug-ins' option in the configuration screen of Opera does suggest plugin support.

Thanks,
Selwyn

By theoriginalgri anchor Wednesday, 20. February 2008, 09:35:27

avatarHello,

I wrote a plugin which runs on Mozilla, Safari, Opera and Internet Explorer using Qt from Trolltech. Only on opera I'm having problems with mouse events :frown: Sometimes I'm losing mouse press and release events. Also I would like to know how to disable the gestures over my control because I want to handle the events, not Opera!

Thanks,
Christoph

By garbeam anchor Monday, 21. April 2008, 13:07:28

avatarHello,

I'm using UIQ3.3 beta SDK which comes packed with a Opera mobile 9.5 (10000346) version. I'm trying to get a trivial NPAPI-plugin running in the WINSCW emulator of UIQ3.3 first, so far without any success.

I built a very trivial C-NPAPI plugin library called nptestplugin.dll with carbide.c++ 1.2 for UIQ3.3 which has the following exported entry points at least:

EXPORT_C TInt
NP_GetEntryPoints(void* pFuncs) {
CConsoleBase* console = Console::NewL(KTextConsoleTitle, TSize(KConsFullScreen,KConsFullScreen));
console->Write(_L("NP_GetEntryPoints\n"));
return 0;
}

EXPORT_C TInt
NP_Initialize(void* nsFuncs) {
CConsoleBase* console = Console::NewL(KTextConsoleTitle, TSize(KConsFullScreen,KConsFullScreen));
console->Write(_L("NP_Initialize\n"));
return 0;
}

EXPORT_C TInt
NP_Shutdown() {
CConsoleBase* console = Console::NewL(KTextConsoleTitle, TSize(KConsFullScreen,KConsFullScreen));
console->Write(_L("NP_Shutdown\n"));
return 0;
}

The exports are freezed of course and present in the WINSCW'ed library. The library is created in the directory epoc32/release/winscw/udeb by default, however that can't be enough for web.exe to load a NPAPI plugin (the udeb directory contains hundreds of dlls and executables and I doubt Opera attempts to scan all dlls in this directory).

I also looked into epoc32/release/winscw/udeb/Z/system/apps/opera and created a plugins-directory there, and copied the nptestplugin.dll into this directory as well, but no success. The plugin isn't recognized.

I also looked through all ini-files to get a hint if Opera expects some option to see how NPAPI plugins are registered, but no success.

So my questions are:

1. Does the Opera mobile 9.5 preview in UIQ3.3 beta SDK support NPAPI plugins at all (I believe yes, because there is the token "Ns4pluginsModule" in oprmodel.dll of UIQ3.3)?

2. If yes, how does the NPAPI-plugin registration works in Opera mobile 9.5? I really have checked all available resources to get an idea, but there seems to be no documentation. In the default Opera 9.x desktop browsers, Opera even looks for plugins in the Firefox plugins directory, but it is absolutely unclear how this is intended in UIQ3.3 + Opera mobile 9.5.

3. The obligatory question if there is no NPAPI-support yet in the current preview version, when can we expect it approx.?

Kind regards,
Anselm

Moderators: jax | malware | mcx | operadev