Record audio files in a mobile safari from a microphone

I did quite a search. I know that there are many PhoneGap solutions that allow people to record audio from a microphone. But what I'm looking for is a solid and simple example of how to record audio using Mobile Safari from a custom microphone.

Are there any examples? HTML5 introduces HTML developments.

+6
source share
2 answers

Now you can - with iOS6 - access the camera. Just use

<input type="file" capture="camera" accept="image/*" id="takePictureField"> 

I tried with audio but still no luck. I have a full blog post (yes, I know Stackoverflow is frowning), demonstrating access to cameras here: http://www.raymondcamden.com/index.cfm/2013/5/20/Capturing-camerapicture-data -without-PhoneGap

+3
source

Apple does not display a microphone or camera in a mobile browser, but they provide location-based services and motion detection (ios 4.2 and later).

information about mobile safes (including location-based services) http://developer.apple.com/library/IOS/#documentation/AppleApplications/Reference/SafariWebContent/OptimizingforSafarioniPhone/OptimizingforSafarioniPhone.html

accelerometer / motion detection for ios 4.2+ http://www.mobilexweb.com/blog/safari-ios-accelerometer-websockets-html5

0
source

Source: https://habr.com/ru/post/890170/


All Articles