在 MVC3 中录制音频
我目前正在寻找一种工具,允许用户在 MVC3 应用程序中制作和保存录音。
我知道这可以通过使用 Silverlight、Flash 或 ActiveX 方法来完成,但是我很感兴趣是否可以通过简单/优雅的方法来完成。
理想情况下,工作流程的功能如下:
- 用户单击“录制”按钮。
- 如果用户有麦克风,则录音开始,否则会通知用户无法录音
- 用户单击“录音”按钮停止录音
- 用户被提示保存录音
如果有人知道有任何工具可以轻松集成到 MVC 应用程序中,或者可能是其他东西这将为我指明正确的方向,我将不胜感激。
I am currently searching for a tool that will allow a user to make and save recordings in an MVC3 Application.
I know this can be accomplished by using Silverlight, Flash, or ActiveX methods, however I was interested if it could be done in an easy/elegant method.
Ideally the workflow would function as follows:
- User clicks the Record button.
- If user has a microphone, recording begins, otherwise user is notified that recording is not possible
- User clicks the Record button to stop recording
- User is prompted to save the recording
If anyone knows of any tools to easily integrate into an MVC application, or perhaps something that will point me in the right direction, it would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果你所说的“优雅”是指纯JavaScript,那么恐怕这是不可能的。您将需要使用客户端插件。以下是使用 Silverlight 的录音机的示例。
If by elegant you mean pure javascript I am afraid that this is not possible. You will need to use a client side plugin. Here's an example of audio recorder with Silverlight.
如果您不使用 Flash、Silverlight、ActiveX、Java 或任何其他插件,您将无法在客户端访问低级别音频。这当然是出于安全原因,无论哪种方式,每个插件在系统内都有自己的安全策略。
我的建议是研究其中任何一个,选择最适合您需求的一个。
If your not using Flash, Silverlight, ActiveX, Java or any other plugin you are not going to be able to access low level audio on the client. This of course is for security reasons, either way each plugin has its own security policies within the system.
My suggestion is look into any of these an select the best one, that fits your needs.
最清楚的方法是允许用户上传音频文件。
如果这不适合使用客户端编程。
Clearest way is to allow user to upload audio files.
If this is not suitable use client side programming.