如何使用java脚本控制Windows录音机
我正在做一些事情,要求我必须控制 Windows 录音机,例如开始录音、停止录音和保存录制的声音。 如何控制它。 还有一件事我不想看到录音机窗口。 我将感激谁给出答案..
I am making some thing that requires that I have to control windows sound recorder like starting recording and stopping recording and saving the recorded sound. how to control that. One thing more I don't want to see the recorder window. I will be grateful to who give the answer..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
如果您打算通过浏览器来实现此目的,则不能。 JavaScript 没有执行任何这些操作的权限,因为这将是一个很大的安全漏洞。 您也许可以通过嵌入对象访问记录器,但我从未尝试过这一点,所以我不确定。
If you intend to make this through a browser, you can't. JavaScript doesn't have the permission to do any of those actions, since it would be a big security hole. You might be able to access the recorder through an embedded object, but I have never tried this, so I don't know for sure.
扩展Machine所说的,为什么不尝试Flash,我确信它有能力使用录音机。
Expanding on what Machine said, why not try Flash, I'm sure that has the ability to use recorder.
我正在制作仅使用 javascript 的 Firefox 扩展。 我可以打开录音机,但无法开始/停止录音并且正在显示窗口。 这是主要问题
I am making an extension of Firefox that uses only javascript. I am able to open sound recorder but not able to start/stop recording and the window is displaying. this is the main problem
试试这个: http://www.iol.ie/~locka/mozilla/plugin .htm
Try this: http://www.iol.ie/~locka/mozilla/plugin.htm