如何最好地从浏览器与外围设备交互
这可能是一个非常基本的问题,我提前道歉。我需要通过网络应用程序与设备进行交互。更具体地说,是一个孪生设备。目前我为此使用签名的java小程序。一般情况下效果很好;签名的小程序可在多个平台上运行并提供所需的设备交互。我遇到的问题是,小程序对于浏览器世界来说似乎并不长久,至少在允许像这样的非沙盒访问方面是这样。我需要知道还有哪些其他选项可用。
我真正想满足的要求是
- 可以访问本地设备。代码签名证书不是问题。
- 主要是基于网络的。只要它可以通过网络交付,并通过网络应用程序启动,我们就可以了。
- 是跨平台的。目前我可以通过 twain 在 Mac 和 PC 上使用扫描仪,通过 sane 在 Linux 机器上使用扫描仪。
我对flash、silverlight等技术不太熟悉。这些选项是否可行?有什么吗?
This may be a very elementary question, I apologize in advance. I need to interact with a device from a web app. More specifically a twain device. Currently I use a signed java applet for this. It generally works well; the signed applet works on multiple platforms and provides the device interaction needed. The issue I have is that applets do not seem to be long for the browser world, at least in allowing non-sandboxed access like this. I need to know what other options are available.
The requirements I would really like to meet are
- can access local devices. Code signing certificate is not a problem.
- is primarily web based. As long as it can be delivered via web, and be initiated via web app going forward, we are OK.
- be cross platform. Currently I can use scanners on macs and PCs via twain, and linux machines via sane.
I am not familiar with technologies such as flash and silverlight. Are either of these viable options? Is anything?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
现在我只知道可用的 ActiveX、Applet 或浏览器扩展(只需在网络上搜索,然后选择您认为合适的一个即可)。我想象很快就会有 Flash 和 Silverlight 选项可用,但目前我还不知道。
Right now I only know of ActiveX, Applet, or browser extensions that are available (just search the web, and pick the one that looks good to you). Pretty soon I'd imagine that Flash, and Silverlight options will be available, but I know of none as of right now.