The Opera plug-in interface

Forums » Dev.Opera » Archived Article Discussions

This topic has been closed. No new entries allowed.

Reason: You can now post comments on articles on Dev Opera

Forum rules and guidelines

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

18. January 2008, 13:21:23

operadev

Posts: 3

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 )

28. January 2008, 09:50:17

nywles

Posts: 1

Hi 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

20. February 2008, 09:35:27

theoriginalgri

Banned user

Hello,

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 sad 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

21. April 2008, 13:07:28

garbeam

Posts: 1

Hello,

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

23. December 2008, 12:02:29

amankamboj1

Posts: 2

Hi,

I have to plugin trolltech's qt 3.3.4 on opera 8.5 in linux (Red Hat enterprise 4) environment. The approach is to call a c++ function of qt using NPAPI. But the problem is that all the examples of NPAPI are available for mozilla and not opera. Could anyone please help me on this?

Thanks in Advance..
Aman

Forums » Dev.Opera » Archived Article Discussions