移动设备网络上的语音录制/播放(Android、iOS、BB)
我正在开发一个适用于所有移动浏览器(特别是 Android、iOS 和 BB)的网站。我使用了实验性的 jQuery mobile 以获得一致的外观和感觉。其中一个页面需要录制和播放音频,为此我做了一些研究,发现 HTML5 对此支持,但仍然是规范的一部分,因此它可能在这些浏览器上不可用,所以我想知道是否有任何解决此问题的方法。我至少知道有一个这样的应用程序可以捕获音频及其适用于 iPhone 的 Google Voice,并且我在某处读到他们使用 HTML5,那么这是否意味着 safari 支持 HTML5 音频捕获?请建议。
I am working on a website that works across all mobile browsers specifically Android, iOS and BB. I have used the experimental jQuery mobile for the consistent look and feel. One of the pages require audio to be recorded and played back for this I did some research and found that HTML5 has support for this but still part of the spec so it may not available on these browsers yet, so I was wondering if there is any workaround for this. I atleast know of one such application that captures audio and its Google Voice for iPhone and I read somewhere that they use HTML5 so does that mean safari has support for HTML5 audio capture? Please suggest.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于音频播放,您可以在所有支持的平台和浏览器上使用此测试页面。它应该确认哪些 HTML5 音频播放结构可以工作:
http://www.jplayer.org/HTML5.Audio.Support/
听起来就像在 Android 上播放一样存在问题,请参阅此处了解信息:
http://textopiablog.wordpress.com/2010/ 06/25/browser-support-for-html5-audio/
我还没有看到任何有关当前浏览器支持通过 HTML5 进行音频录制的信息。您可以尝试 Java 或 Flash,但 Java 要求用户安装它(并接受适当的权限),而 Flash 要求您设置一个服务器来将数据发送到(例如 Red5)...并记住 Flash不适用于 iOS。
For audio playback, you can use this test page on all of your supported platforms and browsers. It should confirm which HTML5 audio playback constructs will work:
http://www.jplayer.org/HTML5.Audio.Support/
It sounds like there are issues with even getting playback to work on Android, see here for info:
http://textopiablog.wordpress.com/2010/06/25/browser-support-for-html5-audio/
I haven't seen anything about current browser support for audio recording through HTML5. You could try Java or Flash, but Java requires the user to have it installed (and accept suitable permissions), and Flash requires you to set up a server for the data to be sent to (e.g. Red5)...and remember that Flash does not work on iOS.