Replacement for NPAPI Plugin

428 views
Skip to first unread message

Armen Sarkisian

unread,
Jan 29, 2015, 2:17:50 AM1/29/15
to chromi...@chromium.org

As we all know Google announced to remove NPAPI from Chrome on September 2015:

http://www.chromium.org/developers/npapi-deprecation

I have a plugin developed with NPAPI, which allows users to scan using WIA and TWAIN. I also use there WinApi do "draw" controls inside browser. Short research showed that alternatives like Native Client/Pepper and so on, do not allow direct access to WinApi.

As I understand the only alternative is to create separate application(e.g Windows Service) to call WinApi throw it, and use WebSockets for communication between Browser and Service. I also should replace HWND with HTML5 canvas drawing.

Please tell me, are there any other solutions for this situation ?

PhistucK

unread,
Jan 29, 2015, 2:38:10 AM1/29/15
to Armen Sarkisian, Chromium Apps
Not really, but since you are building a Chrome application and not a web application, you can use the native messaging API, which means you do not have to communicate using a WebSocket, but using the standard input/output.
The rest is still true, unfortunately.


PhistucK

--
You received this message because you are subscribed to the Google Groups "Chromium Apps" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-app...@chromium.org.
To post to this group, send email to chromi...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-apps/.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.

Armen Sarkisian

unread,
Jan 29, 2015, 2:45:58 AM1/29/15
to chromi...@chromium.org
Thanks for the reply

The reason why I mention WebSockets and Windows Service, is that Native Messaging will work only in Chrome. Currently I have two interfaces, NPAPI(Chrome,Firefox, Opera) and ActiveX(IE), So if I create another interface for native messaging it will be a mess. And with WebSockets, it will be only one standard communication.

Armen Sarkisian

unread,
Jan 29, 2015, 3:45:07 AM1/29/15
to chromi...@chromium.org
By the way, is it possible to use Native Messaging out of Chrome Extension ? Just having calls from my page ?


On Thursday, 29 January 2015 11:17:50 UTC+4, Armen Sarkisian wrote:

PhistucK

unread,
Jan 29, 2015, 5:08:09 AM1/29/15
to Armen Sarkisian, Chromium Apps
No.


PhistucK

--

chol 2046

unread,
Jan 29, 2015, 2:46:19 PM1/29/15
to PhistucK, Armen Sarkisian, Chromium Apps


เมื่อ วันพฤหัสบดีที่ 29 มกราคม ค.ศ. 2015, PhistucK <phis...@gmail.com> เขียนว่า:

chol 2046

unread,
Jan 29, 2015, 2:46:27 PM1/29/15
to PhistucK, Armen Sarkisian, Chromium Apps


เมื่อ วันศุกร์ที่ 30 มกราคม ค.ศ. 2015, chol 2046 <kopan0...@gmail.com> เขียนว่า:
Reply all
Reply to author
Forward
0 new messages