通过网络访问USB Midi设备 [英] Accessing a USB Midi device via the web

查看:132
本文介绍了通过网络访问USB Midi设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图弄清楚是否有可能通过网络访问插入到客户端USB端口的Midi设备(如钢琴/键盘或电子鼓组)。

显然,浏览器安全模式使得仅使用javascript就不可能实现这一点,而且看起来像新兴的html5设备标准可能对未来有所帮助,但显然还没有。

那么flash,silverlight或java呢?我发现最接近的是silverlight似乎能够做到这一点,如果应用程序是值得信赖的,但说服用户去做并不是一件容易的事情。

任何选项?

解决方案

使用Silverlight实现此目的的唯一实用方法是平台调用。这需要Silverlight 5和应用程序以完全信任模式运行,这是合理的,因为应用程序可以使用P / Invoke执行任何操作。如果一个Web应用程序允许开发人员访问客户计算机上的信息,那么就必须有一些警告或用户签名(比如Silverlight的完全信任)。

I'm trying to figure out if it's possible to access a Midi device (like a piano/keyboard or electronic drum set) that is plugged into to a clients USB port over the web.

Obviously the browser security model makes this impossible using just javascript and while it looks like the emerging html5 device standard might help in the future it's apparently not there yet.

So what about flash, silverlight or java? The closest I've found is that silverlight seems to be able to do it if the app is trusted, but that's not a very easy thing to convince a user to do.

Any options?

解决方案

The only practical way (that I know of) to achieve this using Silverlight, is platform invocation. This requires Silverlight 5 and the app to run in full trust mode, which makes sense because the app can do pretty much anything with P/Invoke. If a web app allows the developers to access information on a client's computer, then there will have to be some warning or user sign-off (like Silverlight's full trust).

这篇关于通过网络访问USB Midi设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆