通过使用Safari和HTML5在iPhone上进行录音 [英] Voice recording on iPhone by using Safari and HTML5

查看:193
本文介绍了通过使用Safari和HTML5在iPhone上进行录音的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



HTML5语音录音功能在Chrome和Firefox桌面上运行良好,或者,机器人。但是,在iPhone上使用移动浏览器,甚至是Chrome和Firefox也无济于事。



我试过了recorder.js,结果没有改变。 b

是否有可能在safari上录制语音,或者它是Safari或iOS的缺失功能? 据我所知,即使在最新的iOS(iOS 10)上,使用HTML5在iOS上录制语音仍然是不可能的。由于iOS上的所有浏览器仅限于使用iOS上使用的UIWebView,因此iOS上的Chrome无法支持任何可用于媒体录制的API。

例如,recorder.js您使用的是基于Media Capture API。如果您检查 caniuse.com ,您会发现iOS不支持此API。 (另请查看问题此处)。

MediaRecorder API也是一个有前途的API,但仍然不支持 Apple浏览器。



检查以下答案以获取更多信息。

1. 使用HTML5从iPhone录制语音

2. iOS上的录音html5


I am developing a simple web application which only records a voice from microphone but I have some trouble.

HTML5 voice recording function works well on chrome and firefox desktop or android. But while using mobile browsers on iPhone even chrome and firefox it doesn't work.

I tried recorder.js and result did not change.

Is it possible to recording voice on safari or it is a missing function of safari or iOS?

解决方案

As far as I knew, even on the latest iOS (iOS 10), recording voice on iOS using HTML5 is still impossible. Since all the browsers on iOS are limited to use UIWebView which Safari on iOS uses as well, Chrome on iOS is not able to support any API that can be used for media recording.
For example, recorder.js which you used are built on Media Capture API. If you check caniuse.com, you will find this API is not supported on iOS. (Also check the issue here).
MediaRecorder API is also a promising API but still not supported by Apple's browser.

Check answers below for more information.
1. Record voice from IPhone using HTML5
2. Audio Recording html5 on iOS

这篇关于通过使用Safari和HTML5在iPhone上进行录音的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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