npapi

applet alternative - Launch from browser

和自甴很熟 提交于 2019-12-11 08:56:55
问题 Recently I found an interesting Java applet which works pretty fine for electronic signature, but due to the recent NPAPI stuff with Chrome browser, I've considered it would be a good thing to migrate this applet to a Java application. HTML5/javascript/etc is not a possibility. The special requisite is that the application should be launched from a browser, despite not being an applet. The best approach I have found is as follows: Create an installer which would create a java executable file

Closing gtk application when SWF ends (NPAPI)

我是研究僧i 提交于 2019-12-11 08:22:11
问题 Is there a way to know when my flash ends in NPAPI (like a flag). I want to close my application when my flash is done displaying. Thank you. 回答1: An NPAPI plugin ends when the browser hosting it closes, not the other way around. The only way you might be able to do this is to have your SWF notify javascript which then does something akin to window.close() 来源: https://stackoverflow.com/questions/10726487/closing-gtk-application-when-swf-ends-npapi

Firefox Cocoa Plugin

孤人 提交于 2019-12-11 06:26:35
问题 I`ve created simple hello world-like plugin which draws red box. Аfter embedding into xulrunner application the plugin works almost fine. Xulrunner application successfully redraws the box on resizing the application window. But after any mouse event, for instance - left click, my application crashes with "Stack overflow". Debugger says the reason is endless cycle of 2 calls of forwardMethod followed by one call of JSD_GetValueForObject After the crash stack contents is the next: -

Pass url from java script to NPAPI plugin

点点圈 提交于 2019-12-11 03:15:16
问题 I need to pass currently browsing url string which I have in my javascript to npapi plugin. How can I do this? 回答1: Please see http://npapi.com/tutorial3 You need to create a NPObject to return to the page; you can then implement a method or property for making the call. You may want to look at FireBreath; it simplifies all of this. 来源: https://stackoverflow.com/questions/6986390/pass-url-from-java-script-to-npapi-plugin

Detect Pepper API Flash in Chrome and force NPAPI version?

会有一股神秘感。 提交于 2019-12-11 01:44:06
问题 Chrome's PPAPI version of Flash is now half the speed of the NPAPI version. This is purely unacceptable. In both using Stage3D and conventional Flash Display list, PPAPI lags miles behind in performance and doesn't even make use of hardware acceleration for Stage3D compared to NPAPI which makes full use of it. My question is, I already know there's a way to detect if PPAPI is being used but, can the NPAPI version of Flash be forced upon Chrome users in any way perhaps via headers or

How can I load a NPAPI Plugin from a Safari extension?

流过昼夜 提交于 2019-12-10 21:52:49
问题 My query is similar to this global.html is unable to load NPAPI plugin from safari-extension builder but its loading from the direct link. How can I load a NPAPI Plugin from a Safari extension? 回答1: The simple answer is that you can't. Unlike firefox and chrome extensions, Safari extensions don't allow you to embed npapi plugins in them. 回答2: You can create toolbar in Safari extension Load npapi to the toolbar On start extension make it invisible Get toolbar object Get plugin object from

SSL Certificate Context - How to get it using NPAPI

十年热恋 提交于 2019-12-10 17:56:53
问题 How to get the SSL certificate context of the website using NPAPI ? Can I use libnss (Network Security Services) or should I stick to WinINet's InternetQueryOption() to get the context. Thanks, Saleh 回答1: The NPAPI doesn't have anything that could give you that information and, as far as i know, neither has JavaScript in the page. So there is probably no way around retrieving the URL and using external libraries to get more information about it. 来源: https://stackoverflow.com/questions/4077060

Get Window Handle of Chrome Tab from Within Extension?

自古美人都是妖i 提交于 2019-12-10 16:09:11
问题 I've written a Chrome Extension (w/ NPAPI as well) that allows my application and Chrome to communicate with each other. That is all mostly working fine. What I'm trying to do now is be able to tie the HWND of a Chrome window to a particular Window ID & Tab ID. When I'm inside of Chrome (via the plugin) I have the Tab ID and Window ID and I can do most operations based on that. When I'm outside of Chrome (via my application) I can see the window structure and get the HWND of the various tabs.

Can i embed program through native messaging in Chrome (like old npapi plugins)?

我怕爱的太早我们不能终老 提交于 2019-12-09 23:47:50
问题 Is it possible to create Chrome extension which can embed a program into Chrome? I mean something like old NPAPI plugins such as VLC player, java, etc... I found some native messaging examples, but every example is only for sending simple messages to control an external program. But for example IE Tab is using native messaging and their IE tab engine is running inside in Chrome... or does IE Tab use something else? 回答1: Updated answer: So as pointed out in comments, it does obviously use

How to convert ActiveX control to NPAPI plugin

邮差的信 提交于 2019-12-09 20:20:58
问题 I have an ActiveX control which is designed to * Search for nearby wireless networks * Create a wireless access point * Manage network adapters I would like this plugin to work in Google Chrome/Firefox. In IE; I can use the following code to embed: <object classid="clsid:33FC4347-8118-4DB5-BFBE-8FCF2C96A997" width="32" height="32" id="thectrl"></object> and I create a wireless network as follows (in JavaScript): thectrl.createNetwork("test",0,null,"NONE",3); The ActiveX has an IDL file, and