browser-plugin

A simple hello world NPAPI plugin for Google Chrome?

家住魔仙堡 提交于 2019-12-17 10:26:19
问题 I am trying to make a chrome plugin but Chrome API doesn't give me enough power. I want to use NPAPI but I have no idea how to use it but I do have experience in Visual C++. Can someone show me a 'Hello world' in C++ application so I can get started? 回答1: Note: Both Firefox and Chrome will default most plugins to click-to-play soon, with Chrome planning to phase out NPAPI entirely. NPAPI for new projects is discouraged at this point. NPAPI plugins shouldn't be browser specific (at least as

A simple hello world NPAPI plugin for Google Chrome?

会有一股神秘感。 提交于 2019-12-17 10:25:09
问题 I am trying to make a chrome plugin but Chrome API doesn't give me enough power. I want to use NPAPI but I have no idea how to use it but I do have experience in Visual C++. Can someone show me a 'Hello world' in C++ application so I can get started? 回答1: Note: Both Firefox and Chrome will default most plugins to click-to-play soon, with Chrome planning to phase out NPAPI entirely. NPAPI for new projects is discouraged at this point. NPAPI plugins shouldn't be browser specific (at least as

NPAPI plugin framework Error

£可爱£侵袭症+ 提交于 2019-12-13 09:51:09
问题 I am trying to use NPAPI Framework from Yury Sidorov by following this answer: How to embed Delphi VCL form into HTML page using NPAPI but I get an error with NPPlugin.pas. I am using delphi XE7 and here what i did by following Krom Stern instructions procedure DefDebugOut(const Msg: string); begin OutputDebugStringA(PAnsiChar(Msg + #13#10)); // Changed From Pchar To PAnsiChar end; but still getting error with compiler with this message [dcc32 Error] NPPlugin.pas(2215): E2010 Incompatible

How do I get an NSView in a cocoa event model NPAPI plugin

旧城冷巷雨未停 提交于 2019-12-11 13:02:31
问题 I've followed the NetscapeCocoaPlugin example from the nightly Webkit build, and I'm able to build a NPAPI style plugin that uses the Cocoa Event Model. My question now, is how I can get the NSView inside NPP_SetWindow. A poster in this thread, says that it's possible using [NSView focusView], but I haven't been able to get this to work My current function looks like this: NPError NPP_SetWindow(NPP instance, NPWindow* window) { PluginObject *obj = instance->pdata; obj->window = *window; NSLog

Are plugins for Android's native Web Browser version dependent?

筅森魡賤 提交于 2019-12-11 08:30:09
问题 I've been trying the code Google provides with Android source code for a Browser Plugin, more specifically, following this README, https://www.codeaurora.org/git/projects/qrd-gb-dsds-7225/repository/revisions/cc99b832a941dc8cbb86f1607d04eb87935ddbfd/entry/android/development/samples/BrowserPlugin/README My question is, will I need to distribute a separate plugin for each platform(Froyo, Gingerbread, Honeycomb, etc)?. I'm planning to include native code within the plugin. Thanks in advance! 来源

HTML alternative if plugin is not available

梦想的初衷 提交于 2019-12-11 08:14:58
问题 What is the best practice for displaying an HTML alternative when a browser plug-in is not available? I'm embedding the plugin with an object tag like so: <object id="plugin0" type="application/x-myplugin"></object> This is what an unknown plugin displays as in Google Chrome, however I'd like the solution to work on all browsers (i.e. FF plugin/Chrome plugin/IE ActiveX object) -foot 回答1: If you're talking about flash, whatever you place within the object tag will show up if flash is not

HTML Embed object has a grey background. Can it be transparent?

落爺英雄遲暮 提交于 2019-12-11 02:56:45
问题 I'm using Firefox with an opensource plugin to playback video. The video is scaled "as good as possible" to fit the available space defined in the width and height of the embed object. But sometimes there is a little grey border on the right and/or bottom. It seems this isn't the bgcolor of my parent div as changing it has no effect at all. This is the HTML: <div id="videoHolder" style="position: absolute; left: 50px; top: 50px; width: 300px; height: 150px;"> <embed id="player" width="300"

NPAPI plugin does not get loaded in Firefox

一曲冷凌霜 提交于 2019-12-08 07:47:08
问题 I'm writing an plugin and it gets into [INVALID] section in pluginreg.dat file on Windows. I think there is a problem in my npplugin.rc file. In npplugin.def file everything is correct: LIBRARY EXPORTS NP_GetEntryPoints @1 NP_Initialize @2 NP_Shutdown @3 But neither NP_GetEntryPoints nor NP_Initialize is called. To install plugin I put it into %APPDATA%/Mozilla/plugins directory. Here is npplugin.rc code: // Microsoft Visual C++ generated resource script. // #include "resource.h" #define

Javascript Detect if Adobe Reader is installed

此生再无相见时 提交于 2019-12-07 05:49:26
问题 We have some PDF forms that don't display correctly in non-Adobe PDF readers (i.e. WebKit's built-in PDF reader does not properly display some proprietary Adobe things). We want to detect when users don't have Adobe's PDF Reader installed and give them a little warning, but I'm having a hard time figuring out how to do it in 2014. It seems this script worked in 2011. Basically it loops through navigator.plugins and looks for plugins with the name Adobe Acrobat or Chrome PDF Viewer . for(key

Write once run anywhere browser plugin tool/framework/language?

我与影子孤独终老i 提交于 2019-12-06 08:54:39
问题 I'm looking to create a browser plugin which would run in all of the major browsers, the only problem is that it seems I have to re-create the plugin in every browser. Is there some tool or framework or language I can write a plugin with where it will automatically work on all major browsers? All I need the button to do is scrape webpage content off the active page and from a few of the linked pages, then send it to a program with sockets or named pipes. 回答1: Maybe these "frameworks" can help