ppapi

Porting c++ code (native client) to browser (Web app)

若如初见. 提交于 2020-01-13 20:36:49
问题 I have a c++ module written using Qt-creator SDK. I want to port this code to run on any webpage without compromising the source-code to end user. User should be able to see the output of this module on any browser(Chrome, Firefox, Safari, Explorer) without having to install any additional browser plugin. What are the better options available to achieve this. I have googled and found few such options: Google Native client (NaCl) - But it runs only on Chrome. Is this the future of web

Parallel port access using Google native Client (NaCl)

北城以北 提交于 2019-12-24 02:30:47
问题 I am trying to write a Chrome app that would support printing to old printers connected to the computer via the parallel port. I found out that Chrome apps can not use any kind of NPAPI plugins so those are out of the question. The remaining option seems to be NaCl or PPAPI plugin. But does PPAPI or pepper or NaCl (I am not very familiar with any of them and am probably using them in the wrong context) support access to the parallel port? Can a PPAPI plugin be written, which supports parallel

How to create a PPAPI plugin for Google Chrome in Windows?

ぐ巨炮叔叔 提交于 2019-12-18 10:56:36
问题 I am new to PPAPI development and have downloaded the already examples from here However, even after coming across the documentation, I am not able to build the project. I have Microsoft Visual Studio 2010, Windows OS and Chrome:30.0.1599.65 I understand that once a dll is created, using the regsvr32 command will register the plugin, although getting the dll, even with available code, seems tough for me. Any help for building the dll is appreciated. 回答1: You will want to start here to

Render camera preview in Chrome using Native Client SDK

允我心安 提交于 2019-12-12 04:57:33
问题 I'm trying to write ppapi plugin for Chrome which will use webcam (show preview and write file). I have installed NaCl sdk with pepper_35 . There available examples in /examples/api/ folder: media_stream_audio and media_stream_video . The audio example works fine - requests access to microphone and shows some kind of preview. The "media_stream_video" example must show web-camera video preview, but when I load example on the local web server (with make serve command), there appears red rect,

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

Porting c++ code (native client) to browser (Web app)

最后都变了- 提交于 2019-12-06 07:40:50
I have a c++ module written using Qt-creator SDK. I want to port this code to run on any webpage without compromising the source-code to end user. User should be able to see the output of this module on any browser(Chrome, Firefox, Safari, Explorer) without having to install any additional browser plugin. What are the better options available to achieve this. I have googled and found few such options: Google Native client (NaCl) - But it runs only on Chrome. Is this the future of web applications?? PPAPI - Not sure if it is same as NaCl NPAPI - almost depricated Emscripten - It converts c++ to

Calling Windows API from Native Client/Pepper Plugin

我们两清 提交于 2019-12-06 03:56:05
问题 My intention is to create a chrome plugin for the windows users. Is that possible to call windows api from Native Client /PPAPI. If possible how? 回答1: I am answering my question, as after some study, I found the answer from West a bit not right. I tried calling windows APIs in Pepper(PPAPI) Plugin and it works fine with a command line switch "--register-pepper-plugins" (not the --no-sandbox as specified by West). It seems safer to use this command line attribute as it is only registering a

Detecting Pepper (PPAPI) Flash with Javascript

我的梦境 提交于 2019-12-04 13:24:28
问题 We are using a proprietary document viewer which doesn't play terribly nice with the Pepper version of Flash found in some flavors of Chrome, so I'd like to be able to detect it and redirect to the same content in a different format. Since this version seems to lag behind the NPAPI one, I have been using FlashDetect to look for the version number but this requires daily updating. I'd rather not look at the UserAgent since it's the flash architecture causing the trouble and not the browser,

Detecting Pepper (PPAPI) Flash with Javascript

旧时模样 提交于 2019-12-03 08:33:01
We are using a proprietary document viewer which doesn't play terribly nice with the Pepper version of Flash found in some flavors of Chrome, so I'd like to be able to detect it and redirect to the same content in a different format. Since this version seems to lag behind the NPAPI one, I have been using FlashDetect to look for the version number but this requires daily updating. I'd rather not look at the UserAgent since it's the flash architecture causing the trouble and not the browser, but is there any method of doing this with Javascript? I think it should be done this way: var isPPAPI =

How to create a PPAPI plugin for Google Chrome in Windows?

这一生的挚爱 提交于 2019-11-30 00:51:50
I am new to PPAPI development and have downloaded the already examples from here However, even after coming across the documentation , I am not able to build the project. I have Microsoft Visual Studio 2010, Windows OS and Chrome:30.0.1599.65 I understand that once a dll is created, using the regsvr32 command will register the plugin, although getting the dll, even with available code, seems tough for me. Any help for building the dll is appreciated. DRayX You will want to start here to download the and set up the SDK: https://developers.google.com/native-client/sdk/download This page will